Hi,
I need to update multiple grids using grid.saveAllEdits() method.
So in case of only 1 grid I can simply add a callback to wait till save completion and notify user. But in case of 2 grids, I am not sure how to check this. I cannot place save # 2 inside Save #1 because if there is nothing to save in GridA the second save operation will not be even called.
I am using SmartGWT 2.2 and Firefox browser.
Any suggestions please.
Thanks.
I need to update multiple grids using grid.saveAllEdits() method.
So in case of only 1 grid I can simply add a callback to wait till save completion and notify user. But in case of 2 grids, I am not sure how to check this. I cannot place save # 2 inside Save #1 because if there is nothing to save in GridA the second save operation will not be even called.
Code:
GridA.saveAllEdits(new Function() {
public void execute() {
//some code
}
});
GridB.saveAllEdits(new Function() {
public void execute() {
//some code
}
});
// if GridA and GridB saved
SC.say("Saved Successfully.");
Any suggestions please.
Thanks.
Comment