Announcement

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

    Datechooser DropHandler

    Hi,

    I am trying to perform an action based on dragging a record out of a ListGrid and dropping it on a DateChooser. I haven't been able to figure out how to capture the date on which the record is dropped.

    The code I am currently using is:
    <code>

    dateChooser.addDropHandler(new DropHandler() {
    @Override
    public void onDrop(DropEvent event) {
    Record[] draggedTickets = mainSectionStack.getWorkTicketSection().getTicketGrid().getDragData();
    for(Record rec: draggedTickets){
    Window.alert("==>>"+rec.getAttribute("id"));
    }

    event.cancel();
    }
    });

    </code>

    However I can't get a handle on the date where the drop is done.

    Any help is greatly appreciated.

    Thanks!

    #2
    I'm having the same problem with DropHandler . On dropping on ListGrid, not clear how to get a hold on the record that was dropped on.

    Comment

    Working...
    X