I created a grid with detail rows. Detais rows may have unsaved data. In that case I need to stop the collapse event. My code is not working:
var detailGrid = $("#grid-details").kendoGrid({
detailTemplate: getDetailTemplate,
detailInit:InitFunc,
detailCollapse: function (e) {
if (.....here I check for changes ) {
e.preventDefault();
return false;
}
},
......});
I got to e.preventDefault(), but the row is collapsed anyway