This is a migrated thread and some comments may be shown as answers.

[Solved] ListBox/ComboBox with Checkboxes

2 Answers 190 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Justin
Top achievements
Rank 1
Justin asked on 04 Oct 2010, 10:00 PM
So with the ajax controls they have the RadListBox where you can enable checkboxes for MultiSelection. I want to achieve this same thing with MVC. I would prefer a ListBox however if this is possible with a dropdown or combobox I think I can make that work.

This is what I have now but I would prefer to use a telerik control if possible.

<%

 

= Html.ListBox("ManufacturerList", new MultiSelectList(ViewData["Manufacturers"] as IList, "CompanyID", "Name"))%>

This however is not ideal because I don't want the client to have to hold control to select multiple items in the list.

Any help would be appreciated.

Thanks,
Justin

 

 

 

 

 

2 Answers, 1 is accepted

Sort by
0
Marc Gibian
Top achievements
Rank 1
answered on 18 Feb 2011, 11:49 PM
I have a similar need, though in my case I need a dropdown list of checkboxes. Additionally, since this list can be quite lengthy, I also need keyboard search navigation in the list. I was wondering if you ever found a solution?
0
Justin
Top achievements
Rank 1
answered on 18 Feb 2011, 11:57 PM
Hey Marc,

Unfortunately we ended up going with just a multiselect listbox by having the user hold control to select multiple items. There are a couple jquery multiselect dropdowns with checkboxes that just didn't work with our solution. here is one that might help point you in the right direction.

http://www.erichynds.com/jquery/jquery-ui-multiselect-widget/
Tags
General Discussions
Asked by
Justin
Top achievements
Rank 1
Answers by
Marc Gibian
Top achievements
Rank 1
Justin
Top achievements
Rank 1
Share this question
or