I create new records in ListGrid by using
grid.startEditingNew(rec);
edit them and call
grid.saveAllEdits()
saveAllEdits() is overriden as
@Override
public boolean saveAllEdits(){
ListGridRecord[] records = this.getRecords();
return super.saveAllEdits();
}
but this.getRecords() returns null. As well as this.getDataAsRecordList() and this.getRecordList().
this.getTotalRows() returns correct number of the grid rows
however
this.getRecord(0)
returns null anyway.
How can I get the records in ListGrid and update them before saving?
It has been tested on versions 2.5 and 3.0 LGPL Edition
Thanks in advance
grid.startEditingNew(rec);
edit them and call
grid.saveAllEdits()
saveAllEdits() is overriden as
@Override
public boolean saveAllEdits(){
ListGridRecord[] records = this.getRecords();
return super.saveAllEdits();
}
but this.getRecords() returns null. As well as this.getDataAsRecordList() and this.getRecordList().
this.getTotalRows() returns correct number of the grid rows
however
this.getRecord(0)
returns null anyway.
How can I get the records in ListGrid and update them before saving?
It has been tested on versions 2.5 and 3.0 LGPL Edition
Thanks in advance
Comment