In my application I have four tabs and clicking on each tab opens up a grid. Whenever we make any change in any of the grid columns and click outside the grid, we trigger the
addRowEditorExitHandler() .
In this handler, we call a method and in this method, we do the following:
1. We create a new list --> ListGridRecord record = new ListGridRecord();
2. We get the record of the edited row --> ListGridRecord oldRecord = grid.getRecord(row);
3. And with the help of this oldRecord, we add details to the new record variable. We iterate through the columns in the grid and if any column is edited we add it to the record variable like:
record.setAttribute((String) key, value);
4. After we are done adding the details in the record variable, we call the update data method on the grid:
grid.updateData(record, dsCallback);
If I make any update in the grid and instead of clicking outside on the screen, I click on any other tab on the UI, this will just close the row and it does not open up the other grid.
This is working fine if we use saveAllEdits() method instead of updateData() method for updating the grid record.
Can you help us to understand whether grid.updateData() performs some additional operations as well which is canceling the events triggered after it.
Please let me know if I need to provide more details.
addRowEditorExitHandler() .
In this handler, we call a method and in this method, we do the following:
1. We create a new list --> ListGridRecord record = new ListGridRecord();
2. We get the record of the edited row --> ListGridRecord oldRecord = grid.getRecord(row);
3. And with the help of this oldRecord, we add details to the new record variable. We iterate through the columns in the grid and if any column is edited we add it to the record variable like:
record.setAttribute((String) key, value);
4. After we are done adding the details in the record variable, we call the update data method on the grid:
grid.updateData(record, dsCallback);
If I make any update in the grid and instead of clicking outside on the screen, I click on any other tab on the UI, this will just close the row and it does not open up the other grid.
This is working fine if we use saveAllEdits() method instead of updateData() method for updating the grid record.
Can you help us to understand whether grid.updateData() performs some additional operations as well which is canceling the events triggered after it.
Please let me know if I need to provide more details.
Comment