Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

How to determine Lane in Timeline over a drag/drop operation

$
0
0
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:

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);
    }
   
)};


Viewing all articles
Browse latest Browse all 4756

Latest Images

Trending Articles



Latest Images