tatton777
asked on
How do I create a repeater with fixed size that has scrollbars?
I would like to embed a repeater in my page that is 600x400. If the size of the repeater is greater than the defined size I would like scrollbars to appear.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Note that the div could also be set in the repeaters HeaderTemplate and FooterTemplate, but then it won't show up at all if the repeater doesn't have ANY data.
ASKER
Is there a way to get it to just pop up scrollbars for the vertical?
Try overflow:auto; instead of scroll.
Or if you are okay with using the Panels. I have been using it all along.
<asp:Panel ID="pnlContainer" runat="Server" Width="100%" Height="300px" ScrollBars="Auto">
<asp:Repeater............. .......... .......... ... />
</asp:panel>
<asp:Panel ID="pnlContainer" runat="Server" Width="100%" Height="300px" ScrollBars="Auto">
<asp:Repeater.............
</asp:panel>
ASKER
Thanks for your help!