Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ListBox / Scroll Bar
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00922909
Message ID:
00927906
Vues:
19
>If you want a listbox to show a horizontal scroll bar then you need to wrap the control in a div tag (or span) and set the desired width, then set the wrapper element to use a scrollbar on horizontal overflow. Here is an example:
<div style="width:80px; overflow-x:auto">
    <asp:ListBox id=YourListBox runat="server"></asp:ListBox>
</div>


Cathi,

Many thanks for the reply! I tried creating the div, however, hit a couple of snags... The place I am needing the Hz Scroll Bar is in a Composite Custom Control... When .Net renders the control it converts the div to a span ... The 2nd problem comes from the fact I am using absolute positioning for the list within a panel... Once the list box is wrapped in the div / span the positioning goes very crazy. Those two together are giving me fits with the div solution. I appreciate the advice very, very much.

Many Thanks,
Danny
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform