ASP.NET - to reduce the height of the dropdownlist
Asked By vishal kumar on 31-Jul-09 01:30 AM
I have a drop down list box in my aspx web page.
am populating the drop down list from sql database. There is a huge
list of data to be shown in the drop down list. So when i click on the
drop down button it show a very long scroll bar.
I want to reduce the height of the drop down list scroll window. How can I do this?
I tried to set the "Height" attribute of the Dropdown list box to a fixed value it doesn't seem to work.
So can anybody suggest me on how to fix the height of the dropdown list box?
sri sri replied to vishal kumar on 31-Jul-09 02:17 AM
It is not possible to reduce the height of the drop down list.
instead of dropdown try with the list box or autocomplete (toolkit)
you can go with custom dropdown list
visit the below link to create custom dropdown list
RE - Ravenet Rasaiyah replied to vishal kumar on 31-Jul-09 02:39 AM
In the windows we have property call MaxDropDwownItem. but not in the asp.net dropdownlist.
So you can use the followings
1. you can use the auto complete combo box which is come with AJAX
2. you can extend the standard drop down control like this way.