Announcement

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

    Question: Get Data for Grouped Visible Rows

    Hi,

    I'm trying to export data that's visible on a grouped grid, however, when I run the following code, I'm getting an unexpected result.

    Code:
    RecordList rl = (grid.isGrouped() ? grid.getOriginalRecordList(): grid.getRecordList());
    Record [] r = rl.getRange(grid.getVisibleRows()[0], grid.getVisibleRows()[1]);
    String t = datasource.xmlSerialize(JSOHelper.convertToJavaScriptArray(r));
    It seems like getVisibleRows() would ignore the status of group folder (open or close) and return value as if all the folders are opened. Also, even if the group folders are opened, the range index is much more than what you can see on the screen.

    I'm not sure if it's a bug or it works as design, please let me know if i'm doing something wrong here.

    GWT:1.5.3
    SmartGWT: 2.2

    Thanks,

    Kuan
Working...
X