SmartGWT 4.0p
We drag ListGrid record over Timeline component. We have all the information to construct correct CalendarEvent BUT no information over which lane object has been dropped ....
How can I get this information ?
Below is how we handle drag/drop operation:
We drag ListGrid record over Timeline component. We have all the information to construct correct CalendarEvent BUT no information over which lane object has been dropped ....
How can I get this information ?
Below is how we handle drag/drop operation:
Code:
this.planning.addDropHandler(new DropHandler() {
@Override
public void onDrop(DropEvent event) {
Object dragTarget = EventHandler.getDragTarget();
ListGridRecord rec = ((ListGrid)dragTarget).getSelectedRecord();
CalendarEvent newCalEvent = planning.createEventFromListGridRecord(rec);
ds.addData(newCalEvent);
}
)};