We have a form with 3 tabs. Each tab has an editable grid in batchMode. We want to have a single save button on the page.
It will need to call the save of each grid. However, it appears the grid sync doesn't return a promise.
What is the suggested way to do this, checking there were no errors in the first call before making the next. Does the sync event return error info? Is the sync event called even if there is an error? If would be great if sync returned a promise but it doesn't seem to. I'm not sure if I can wrap these in a jquery or underscore deferred in some way?
BOb
It will need to call the save of each grid. However, it appears the grid sync doesn't return a promise.
What is the suggested way to do this, checking there were no errors in the first call before making the next. Does the sync event return error info? Is the sync event called even if there is an error? If would be great if sync returned a promise but it doesn't seem to. I'm not sure if I can wrap these in a jquery or underscore deferred in some way?
BOb