I have a Kendo grid on one view that has a column that needs to be a dropdownlist when inline editing. I've set the editor template name on the column to a partial view that I created, and that all seems to be working.
The part that is not working is when you change the value of the dropdownlist and click the Update button in the command button column. The selected value is not being applied to the model.
Is the BindTo property not the right one to use?
The part that is not working is when you change the value of the dropdownlist and click the Update button in the command button column. The selected value is not being applied to the model.
@(Html.Kendo().DropDownList()
.Name("divisionCombobox")
.BindTo("#=UserViewModel.DivisionId")
.HtmlAttributes(new { style = "width:250px" })
.DataTextField("DisplayName")
.DataValueField("Id")
.AutoBind(true)
.DataSource(source => source
.Read(read => read.Action("ListDivisions", "Security"))
.ServerFiltering(true))
)
Is the BindTo property not the right one to use?