This question is locked. New answers and comments are not allowed.
I am new to Telerik MVC and to MVC in general. I am trying to use ComboBox in Razor view and copied your example of usnig combobox in aspx view so I converted the original code of:
<%
= Html.Telerik().ComboBox()
.Name(
"Categories")
.SelectedIndex(-1)
.BindTo(
new SelectList(Model, "CategoryID", "CategoryName"))
.ClientEvents(events => events.OnChange(
"categoryChanged"))
%>
to
@Html.Telerik().ComboBox()
.SelectedIndex(-1)
.BindTo(new SelectList(Model.PropertyTypes, "ID", "Name"))
in my Razor View.
When I run it I get an exception deep down in telerik xource code in ViewComponentBase.cs in the method
VerifySettings() complaining the Name variable is null ?
Can you show me a code snipet how to bind ComboBox in Razir views ?
Thanks
Zeev