Hi, I tried adding the beforeSubmit: saveRecord() to the options but they seem to fire before the grid loads and don’t fire when a record is saved?
I originally had this:
.navGrid(‘#pager’,{}, {height:280,reloadAfterSubmit:false}, {height:280,reloadAfterSubmit:false}, {reloadAfterSubmit:false}, {});
I then tried this:
.navGrid(‘#pager’,{}, {height:280,reloadAfterSubmit:false,beforeSubmit: saveRecord()}, {height:280,reloadAfterSubmit:false}, {reloadAfterSubmit:false}, {});
The saveRecord function simply ran an alert() and return false. This fired before the grid had loaded. When I clicked on the edit button the form pops up to edit the data. When I submit then the editurl is called but the beforeSubmit function is not?
Have I missed something? Is it possible to call a function at the beforeSubmit stage or is there another way to do it? Do I need to actually add my function body into the beforeSubmit option?
Cheers,
Dave