Hello,
I have declared a column in a kendo grid as foreignkey, data to be selected is set with as follows:
columns.ForeignKey(mo => mo.CodKit, (System.Collections.IEnumerable)ViewBag.listKitMuestra, "idKit", "Descripcion").Title("Fabricante de Kit").Width(120);
where idKit is an integer and Descripcion is a string var.
The objects presented in kendoGrid have the CodKit field defined as int? and when I Create a row (inline edition used) when save button clicked, the value for CodKit is not sent in the objetct to controller. If is an edition of a row with no value for this field and it´s setted to an option of the dropdownlist, kendoGrid acts as it was not changes in row an even not call to controller. Ignores that column.
Only works if row has yet value for this column when load items from database and you change the value selecting from dropdownlist another value, in this case is sent to controller in the objetct when update button is clicked.
I use incell dropdownlist with int values in several kendoGrids and no problem. But this case with int? is not working correctly or i´m doing something wrong.
Thanks
Best regards,.