Completed
Last Updated: 20 Nov 2014 18:51 by ADMIN
Bradley Fulton
Created on: 06 Dec 2012 19:44
Category: Kendo UI for jQuery
Type: Feature Request
2
Kendo grid ForeignKey column need to work even if initial key value is null
Fix issued described in support ticket 634770 
1 comment
Imported User
Posted on: 23 Mar 2013 21:18
Calling the following Javascript from the OnSave event does work around the problem, but I still think the underlying Kendo needs to be fixed:

function Grid_FixDropDowns(e) {
        var dropdowns = e.container.find('[data-role=dropdownlist]');
        dropdowns.each(function (i, dd) {
            var fldval = e.model.get(dd.id);
            if (!fldval) {
                var val = $(dd).data().kendoDropDownList.value();
                e.model.set(dd.id, val);
            }
        });
}