Do any good multi-select dropdownlist with checkboxes (webcontrol) exist for asp.net?
Thanks a lot
Do any good multi-select dropdownlist with checkboxes (webcontrol) exist for asp.net?
Thanks a lot
HTML does not support a dropdown list with checkboxes. You can have a dropdown list, or a checkbox list. You could possibly fake a dropdowncheckbox list using javascript and hiding divs, but that would be less reliable than just a standard checkbox list.
There are of course 3rd party controls that look like a dropdown checkboxlist, but they are using the div tricks.
you could also use a double listbox, which handles multi select by moving items back and forth between two lists. This has the added benefit of being easily to see all the selected items at once, even though the list of total items is long
(Imagine a list of every city in the world, with only the first and last selected)
I like the Infragistics controls. The WebDropDown has what you need. The only drawback is they can be a bit spendy.
You could use the System.Web.UI.WebControls.CheckBoxList
control or use the System.Web.UI.WebControls.ListBox
control with the SelectionMode
property set to Multiple
.
Check this out. It's free one.
http://irfaann.blogspot.com/2009/07/ajax-based-multiselect-dropdown-control.html
HTH,
Here's a cool ASP.NET Web control called Multi-Select List Field at http://www.xnodesystems.com/. It's capable of:
(1) Multi-select; (2) Auto-complete; (3) Validation.