Announcement

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

    Drag Reorder on ListGrid

    Hello,

    Using SmartGWT 6.0 LGPL

    I'm trying to perform a drag-reorder on a set of records, but on

    listGrid.addRecordDropHandler(new RecordDropHandler() {

    @Override
    public void onRecordDrop(RecordDropEvent event) {

    // UNCHANGED RECORD LIST
    RecordList list = listGrid.getRecordList();

    }


    }

    The records I get from listGrid are in the original order.

    What's the tonic for getting the new order of records?

    Thank you!

    Last edited by thomlep; 1 Feb 2017, 13:15.

    #2
    When the DropEvent fires, the reordering has not actually happened yet (eg you could still cancel()) it. You could register for DropComplete to get a notification after the reordering has taken place.

    Comment


      #3
      Dang. Just DropComplete. I did not see it. I was looking for listGrid.addRecordDropCompleteHandler, which does not exist. So we have
      addRecordDropHandler, but then we just addDropCompleteHandler (without the "record" in the name).

      Cool. Thanks!

      Comment

      Working...
      X