DropDownList Webform question.

J

James Radke

Hello,

I have a dropdownlist on a web page, and due to amount of items on a line, I
am limited to setting the width of the control to a certain amount (for
discussion say 50). What I thought would happen if the text is set to
longer than that on the client is that the list would expand beneath the
dropdownlist selection area when clicked, and that I would still see all the
text while scrolling through the list to make the selection.

But, instead the list is cut off at the width of the control.

Is there a way to change this client-side behavior so the full width of the
text is only displyed in the drop down scrollable portion while selecting,
and then limited to the width number of characters for a selected item?

Thanks!

Jim
 
M

MSFT

Hi Jim,

DropDownlist control doesn't support to set the width of scrollable portion
seperately. Its width must be same as the whole control. A posible solution
is to use a TextBox, a button and a ListBox to simulate DropDownlist
control.

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 

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

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top