Dropdownlist: handling very wide listitems

  • Thread starter HoustonFreeways
  • Start date
H

HoustonFreeways

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.

Observations:
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
purposes.

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,999
Messages
2,570,244
Members
46,838
Latest member
KandiceChi

Latest Threads

Top