the dropdownlist is rendered as a standard built in control of a specific browser.
What you can do is to create a div with several items for the rows and as such you have complete control over the height of all the elements as you desire.
On the other hand, why do all the effort? People like to make use of standard controls when it comes down to working with web applications in which a lot of crud needs to be done as they can then make use of the tab key to jump through the page's controls
as they expect. You adding something else without such support (which you would need to support yourself) might confuse them and slow down their effort while working.
Grz, Kris.
Read my blog | Twitter Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
Marked as answer by BU XI - MSFT on May 07, 2012 07:43 AM
res.web
Member
546 Points
138 Posts
custom dropdown list that allow to define height
Apr 29, 2012 03:19 PM|LINK
Hi,
I Want to create custom drop down list which allow me to define height.
Anyone can help me in this
XIII
All-Star
182789 Points
23485 Posts
ASPInsiders
Moderator
MVP
Re: custom dropdown list that allow to define height
Apr 29, 2012 04:59 PM|LINK
Hi,
the dropdownlist is rendered as a standard built in control of a specific browser.
What you can do is to create a div with several items for the rows and as such you have complete control over the height of all the elements as you desire.
On the other hand, why do all the effort? People like to make use of standard controls when it comes down to working with web applications in which a lot of crud needs to be done as they can then make use of the tab key to jump through the page's controls as they expect. You adding something else without such support (which you would need to support yourself) might confuse them and slow down their effort while working.
Grz, Kris.
Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!