Announcement

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

    TileGrid Dropped Records

    While I can easily get dropped records on a List Grid via:

    myListGrid.addRecordDropHandler(new RecordDropHandler() {
    @Override
    public void onRecordDrop(RecordDropEvent event) {
    ListGridRecord[] records = event.getDropRecords();
    //dropped records are now in the "records" variable;
    }
    });

    I can not get them the same way on a TileGrid.
    Is there something I miss? How can I get dropped records on a TileGrid ?

    #2
    In the drop event, the ListGrid or TileGrid that is the source of the drag is the available via EventHandler.getDragTarget(), and both components support a getDragData() API to get the dropped records.

    Comment


      #3
      Thanks, that helped.
      Is there a reason TileGrid won't support adding a RecordDropHandler the same way ListGrid does?

      Comment


        #4
        As you can see now, it's just a convenience API. We have taken the convenience APIs deeper on the ListGrid because drag and drop there is more common.

        Comment

        Working...
        X