Hello Andrea,
You should use the valuePrimitive option in order for the model to be updated correctly when the value is null e.g.
Regards,
Daniel
Telerik
You should use the valuePrimitive option in order for the model to be updated correctly when the value is null e.g.
@model
object
@(Html.Kendo().DropDownListFor(m => m)
.Name(ViewData.TemplateInfo.GetFullHtmlFieldName(
""
))
.BindTo((SelectList)ViewData[ViewData.TemplateInfo.GetFullHtmlFieldName(
""
) +
"_Data"
])
.OptionLabel(
"Select"
)
.ValuePrimitive(
true
)
)
Regards,
Daniel
Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items