The default DropDownList control for ASP.NET is not very flexible - sometimes we need to fit a dropdown control in tight space or consider other layout restrictions that don't mix well with the default dropdown control.
This DropDownList control is similar to the default but without the arrow (to make it slimmer) and comes with easily customizable CSS.
You can change properties such as:
And more.
Included in the package is a test page where the functionality of the custom DropDownList is demonstrated.
Written in C# this variation to the standard droplist could be really useful, but it needs a few tweaks. The source code is supplied so if required it can be converted to VB if desired although there is no need really. But is you are one of those clever people you could experiment more with the tool., so it is aplus that the source is included as wel las the compiled dll. Remember to set the page AutoEventWireup="true" otherwise you will struggle. This cannot be update via a standard datasource and a way to collect the users choice escapes me at present. I used a sqldatareader to grab data fromn adatabase and using the with statement and a list.add statement as included in the demo code, I could populate the list from a database. Presentation wise it is ok with the sizing working good - in the demo the control has the width set, but take that off and set the css ctr_panel to width:auto and it will size to fit the data which is good - or it cna be contrained at will, same with the height. Also the Rowheight is a good feature and a bit of left padding appled to the ctr_panel etc and the data moves in nicely. I woudl have liked to apply alternate background but it renders to a simple div without spans ot <p> so cant work out if alternate will be possible. Maybe via the Asp mod function? In principle, and certainly for the cost, this is a good tool, but we just have to solve the how to grab the users selection. Regards
Questions & Comments