How to set DataTextField of ListBox dynamically
I have a listbox control as
@(Html.Kendo().ListBox()
.Name("ListboxCompany")
.Selectable(ListBoxSelectable.Single)
.DataTextField("name")
.DataValueField("Id")
)
.BindTo(Model)
)
and
created a radiobuttongroup. So how I can change DataTextField with the value checked from radiobuttongroup