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!
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!
Comment