This question is locked. New answers and comments are not allowed.
Hi,
I'm having a little trouble with a DropDownListFor where I'm not able to change the selected item. I've tried both selecting an item inside the BindTo method as well as using SelectedIndex and neither seem to change the selection.
This is the code I'm using:
If I change it to a DropDownList the selected item changes as expected.
Any help is appreciated.
Thanks,
I'm having a little trouble with a DropDownListFor where I'm not able to change the selected item. I've tried both selecting an item inside the BindTo method as well as using SelectedIndex and neither seem to change the selection.
This is the code I'm using:
<%= Html.Telerik().DropDownListFor(model => model.SomeObject.SomeProperty) .HtmlAttributes(new { style = "width: 160px;" }) .BindTo(new SelectList(Model.Statuses, "Text", "Value", Model.SomeObject.SomeProperty))%>If I change it to a DropDownList the selected item changes as expected.
Any help is appreciated.
Thanks,