Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Need to fix Dropdown height to get scrollbar

0 views
Skip to first unread message

Vishav

unread,
Jan 5, 2010, 6:27:02 AM1/5/10
to
Hi all,

I am having a dropdownlist on a popup window that has around 150 items, when
selected the list goes out of the popup window.
Can somebody help me to fix the height of the dropdownlist so that I can
restrict it to show 50 items and let user scroll down the list to view the
rest.

Thanks in advance.

Mark Rae [MVP]

unread,
Jan 5, 2010, 8:22:57 AM1/5/10
to
"Vishav" <Vis...@discussions.microsoft.com> wrote in message
news:D8A94394-BAF6-4082...@microsoft.com...

You can't, at least, not 100% reliably with cross-browser support...

There are several workarounds:
http://www.google.com/search?btnG=1&pws=0&q=DropDownList+height


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Alexey Smirnov

unread,
Jan 5, 2010, 9:20:47 AM1/5/10
to

As there is no standard way to set this and a list with 150 items is
too long, I would suggest a custom "control" built from a list, image
and floating div like the one below

http://aspalliance.com/541_Multiple_Column_DropDown_Box_for_ASPNET

You can either use ListBox or Gridview to show items.

Abdul Sami

unread,
Jan 6, 2010, 2:58:01 AM1/6/10
to
Keep dropdownlist in Iframe

--
Abdul Sami


"Alexey Smirnov" wrote:

> .
>

0 new messages