I stuggle with this grid and editortemplate with a combobox. My model has a int? idAfdeling that is the foreign key.
With the valuePrimitive set to false, the idAfdeling remains null after a combobox item is selected, it will update once the initial idAfdeling is not null.
With the valuePrimitive set to true, the idAfdeling is updated after selecting an item, but the autobind option is not respected and an ajax call is made.
Now i wonder if there is any option to make the combination (combobox, nullable int, bind on demand) work..
@(Html.Kendo().ComboBoxFor(m => m)
.DataTextField("Omschrijving")
.DataValueField("idAfdeling")
.DataSource(ds =>
{
ds.Read(read => read.Action("Afdelingen", "Afdeling", new { Area = "Tabellen" }).Data("passAfdeling"));
})
.HeaderTemplateId("AfdelingHeaderTemplate")
.TemplateId("AfdelingTemplate")
.Suggest(true)
.ValuePrimitive(false)
.AutoBind(false)
)