Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Get records in ListGrid after inline editing

    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
    Attached Files
    Last edited by Oleg; 22 Feb 2012, 04:13.

    #2
    I apologize for disturbing.

    The solution has been found.
    I just had to use

    getTotalRows();
    and then
    setEditValue();

    Comment

    Working...
    X