This question is locked. New answers and comments are not allowed.
This is very strange:
Controller:
View:
Result in Store Dropdownlist wokring with 2 stores from DB.
Status Dropdownlist shows only the first out of 5 option, and doesn't open....
What can it be ?!
Dani
Controller:
myVM.OrderStatusList = ordersRepository.GetOrderStatuses().Select(x => new SelectListItem { Value = x.StatusID.ToString(), Text = x.StatusName, Selected = (x.StatusID == myVM.myOrder.StatusID) });myVM.StoresList = ordersRepository.GetStoreList().Select(x => new SelectListItem { Value = x.StoreID.ToString(), Text = x.StoreName, Selected = (x.StoreID == myVM.myOrder.StoreID) });View:
<%: Html.Label("Store: ") %> <%: Html.Telerik().DropDownListFor(x=>x.myOrder.StoreID) .BindTo(Model.StoresList)%> <%: Html.Label("Status: ") %> <%: Html.Telerik().DropDownListFor(x=>x.myOrder.StatusID) .BindTo(Model.OrderStatusList)%> </div>Result in Store Dropdownlist wokring with 2 stores from DB.
Status Dropdownlist shows only the first out of 5 option, and doesn't open....
What can it be ?!
Dani