Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

Inline editing nullable foreign key

$
0
0
Hello Andrea,

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

Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>