Hi,
I'm new to Kendo controls. We are replacing the existing MVC controls with Kendo Controls.
The existing MVC controls looks like below
@Html.DropDownListFor(model => model.value, new SelectList(ViewBag.list, "id", "label"))
I can able to load the data but not able to set the value like above. Please suggest to set the value. Below is my Kendo control. It has the Value property but doesn't allow model values in it.
@(Html.Kendo().ComboBox()
.Name("ComboBox")
.DataTextField("label")
.DataValueField("id")
.BindTo(@ViewBag.list
)
I'm new to Kendo controls. We are replacing the existing MVC controls with Kendo Controls.
The existing MVC controls looks like below
@Html.DropDownListFor(model => model.value, new SelectList(ViewBag.list, "id", "label"))
I can able to load the data but not able to set the value like above. Please suggest to set the value. Below is my Kendo control. It has the Value property but doesn't allow model values in it.
@(Html.Kendo().ComboBox()
.Name("ComboBox")
.DataTextField("label")
.DataValueField("id")
.BindTo(@ViewBag.list
)