Hi,
I am working on project with SmartGWT on client side (6.0p version). There is a problem with saving data when records are grouped. Let's say records are grouped by COL1 column, and we want to change value of that column. The record which is changed goes to another group is marked as changed, but without specified field. I am not using autosaving, so when I try to invoke save operation, saving freezes.
After short analysis of your code, problem lays on that line (ListGrid.js):
All I need is to disable auto regrouping records after changing values. Is there any possibility to avoid regrouping?
I Java code:
I am working on project with SmartGWT on client side (6.0p version). There is a problem with saving data when records are grouped. Let's say records are grouped by COL1 column, and we want to change value of that column. The record which is changed goes to another group is marked as changed, but without specified field. I am not using autosaving, so when I try to invoke save operation, saving freezes.
After short analysis of your code, problem lays on that line (ListGrid.js):
Code:
if (this.isGrouped && (!saving || !this.shouldSaveLocally())) {
this._updateGroupForEditValueChange(rowNum);
}
I Java code:
Code:
final int[] allEditRows = grid.getAllEditRows(); //returns edited records
grid.saveAllEdits(new Function() {
@Override
public void execute() {
[...] //execute is not invoked
}
});
Comment