DropdownList with checkbox

0

Would anyone know a way to make a DropdownList with checkbox ?

I have the following DropDownList:

@Html.DropDownListFor(model => model.CD_AFFILIATE, new SelectList(@ViewBag.list, "CD_AFFILIATE","NM_AFFILIATE"),  new { @class = "ComboWidth" })

The best way would be to do with jQuery or make a custom component?

    
asked by anonymous 02.07.2015 / 15:30

1 answer

0

Hello, Paul.

The DropDownList helper generates a <select> element. To do a dropdown with checkboxes you will have to customize the default component by inserting a checkbox in each.

Take a look at the Selectmenu component of jQuery UI , maybe it will help.

Hug.

    
02.07.2015 / 15:45