I'm using ASP.NET C # with mvc 4 and in my View I have a DropDownListFor, with a class I used from bootstrap-multiselect, as in the image:
Andthecodeintheview:
@Html.DropDownListFor(m => m.Estagios, (IEnumerable<SelectListItem>)Model.Estagios, new { @class = "multiselect form-control", multiple = "multiple" })
When I do the search, I make a Post in a method on the Controller and inside this method (both get, and post) feed the ViewModel and SelectList:
Sohe'spickingupthevaluesIposted,whichare1,3,and5.IgiveaReturnViewbypassingtheViewModel.Whenitpostsandthepagereloads,itassumesthevalueintherightquerystringanddoesallthecorrectsearchhandlingasprogrammed,howeveritdoesnotassumethepickervaluesintheDropDownList,bringingonlythefirstonefromthelist:
Am I doing something wrong?
The plugin used by css / javascript is this: davidstutz.github.io/bootstrap-multiselect