This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > August 2004 > How to Wrap Text or Wider the Drop Down Box? (ASP.NET Web Control)





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How to Wrap Text or Wider the Drop Down Box? (ASP.NET Web Control)
Don Wash

2004-08-07, 12:14 pm

Hi There!

I have a Server-side Drop-down box in ASP.NET (VB) page. What do I do to
widen the Drop down box's Pull-Down list's width?

I'm not talking about the Drop-down box's width but the box that appear when
user clicks the drop-down arrow button. Because items in the Drop down list
are a little long, user can't see the full thing when they pull down the
items from the drop down list.

Please help!

Thanks in advance!

Don


Julian Roberts

2004-08-07, 7:15 pm

What code is generated? The box should expand to accommodate the widest
entry.

--
Jules
http://www.charon.co.uk/charoncart
Charon Cart 3
Shopping Cart Extension for Dreamweaver MX/MX 2004



Don Wash

2004-08-07, 7:15 pm

Unfortunately, it doesn't. I'm not talking about the Drop-down box's
width but the box that appear when
user clicks the drop-down arrow button. Because items in the Drop down list
are a little long, user can't see the full thing when they pull down the
items from the drop down list.

E.g., The Dropdown List Width is 100px, but the contents width is 200px. I
want the contents to shown in full when user click the Drop down box button.

It is easier to do it in Windows Forms' ComboBox, which have DropdownWidth
property. Is there an equivalent property in Web Control Dropdown box?

Thanks,
Don

"Julian Roberts" <newsg@charon.co.uk> wrote in message
news:cf2tha$7ho$1@forums.macromedia.com...
> What code is generated? The box should expand to accommodate the widest
> entry.
>
> --
> Jules
> http://www.charon.co.uk/charoncart
> Charon Cart 3
> Shopping Cart Extension for Dreamweaver MX/MX 2004
>
>
>



danilocelic

2004-08-07, 7:15 pm

Don Wash wrote:

> E.g., The Dropdown List Width is 100px, but the contents width is 200px. I
> want the contents to shown in full when user click the Drop down box button.


If you set teh width of a select list, then the drop down will be only as wide as the select list itself. Best to not set any width and it'll expand to the size of the content, or set it wider than any expected values.



--
Enjoy,
Danilo Celic
| Extending Knowledge Daily
| http://www.CommunityMX.com/
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews