Click here to Skip to main content
15,917,473 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

Kindly help me to sort out this below issue.

Currently I have a Div and I have Panel inside Div.
HTML
<div id="Ord1">
<asp:Panel ID="pnlOrd1" runat="server">
Dynamic HTML Tables....
</asp:Panel>
</div>

Now I have created dynamice table controls and added to the Panel which is placed inside the Div( Div>Panel>Dynamic Tables).

If the number of dynamic tables is more than 5 then I need to auto scroll the talbes one by one from left to right with equal intervals.

Note: My Page will have 4 Divs and each dive will have Panel inside the Div. Suppose in Second Div if the dynamic tables is less than 5 there is no need of auto scroll to be done.

Thanks and Regards,
David.
Posted
Updated 7-Jun-13 1:27am
v4
Comments
Prasad Khandekar 7-Jun-13 7:33am    
Hello Naveen,

Please have a look at (http://smoothdivscroll.com/mixedContent.html) JQuery plugin.

Regards,
vaibhav10Dec1987 10-Jun-13 9:52am    
Give each div has fixed height.& give overflow propperty true.

1 solution

Hi,

You can use style with overflow property in div



XML
<div id="Ord1" style="overflow:auto;Height:250;width:250" >
<asp:Panel ID="pnlOrd1" runat="server">
Dynamic HTML Tables....
</asp:Panel>
</div>





Here i fixed the height and width as 250px, when control inside the div cross the height or width scroll will automatically appears else disappear
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900