Hi There,
I am newbie to Kendo. I am having issue with DropdownlistFor while binding to Viewbag selectlist. In the below code ViewBag.AddressList has a disabled value and it is not binding as disabled item in dropdownlist.
Please see below Code
ViewBag.AddressList = new SelectList(model, "CodeOrder", "CodeDisplay",
selectedValue: model[0].CodeOrder.ToString(),
disabledValues: model[0].CodeOrder.ToString());
@Html.Kendo().DropDownListFor(m => m.AddressType)
.BindTo((SelectList)ViewBag.AddressList)
.HtmlAttributes(new { @id = "ddlAddressType" })
In the attached image , Address Type is considered as option label and has to be disabled as well as not allowing user to select it.
Best Regards,
Phani