This question is locked. New answers and comments are not allowed.
I am just starting to use Telerik controls. I am trying to get the selected value from a dropdownlist to automatically bind to model. Here is my code
But the value returned in the controller method is always zero. Any ideas what is wrong?
Thanks,
@(Html.Telerik().DropDownList()
.Name(
"ClientDropDown")
.HtmlAttributes(
new { style = "width: 200px" })
.BindTo(
new SelectList(Model.Clients, "ClientId", "ClientName", Model.SelectedClientId))
)
But the value returned in the controller method is always zero. Any ideas what is wrong?
Thanks,