469,931 Members | 1,799 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,931 developers. It's quick & easy.

Dropdownlist: handling very wide listitems

I am populating a dropdownlist via a databind to a database. However, the
text to be displayed can be very long, making the dropdownlist very wide. I
need some way to reduce the width of the dropdownlist but still show the
entire text of the listitem option.

1. Setting the dropdownlist to a fixed width chops off the option text to
the width of the control (making long text invisible).
2. Listitem elements are plain text only and do not render any HTML tags.
3. The listitem class is sealed/notInheritable, so making a special listitem
class appears not to be an option.

Ideally, the dropdownlist listitem would be able to wrap the text within a
fixed width field, while still acting as a single unit for selection

Another possibility which appears to be impossible is to manually truncate
the long option to a fixed number of characters and then use a tooltip to
show the full text. Listitems don't support tooltips, however.

Does anyone have any ideas on how to deal with this?
Nov 19 '05 #1
1 3443
It appears I could use a specialty control, such as EasyListBox


Still, it would be preferred to do this without a special control.
Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by DesignerX | last post: by
4 posts views Thread by Luis Esteban Valencia | last post: by
1 post views Thread by Geoffrey van den Ouden | last post: by
reply views Thread by Jose Fernandez | last post: by
1 post views Thread by Nathan Sokalski | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.