Announcement

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

    ListGrid addData as first row?

    ListGrid.addData(record) in the example...
    http://www.smartclient.com/smartgwt/showcase/#grid_dataoperations_add

    ... puts the added record in the first row.

    What makes it go in the first row vs. the last row position?

    I've got a very similar grid, but addData results in a new row at the last position.

    thanks!
    ,chris

    #2
    See ResultSet.updatePartialCache - then to elaborate on those docs, we can only add at the end if we have cached rows up to the end of the dataset, hence that sample adds at the beginning. We prefer to add at the end because that's the right thing to do when inline editing and adding rows via keyboard entry.

    Comment

    Working...
    X