DHTMLX Docs & Samples Explorer

Index
dhtmlxgrid
Event Handling

## onDrop Event

Required library edition:

This event occurs when an item is already placed in its final position. It can be used to catch the moment when the operation is finished.
The first parameter of this event is item id after moving (in case of “copy” behavior it will differ from original item id).
This event can be used to save the data or to update some other UI based on drag-and-drop results.

This event passes the following parameters:

- sId - id of the source item;
- tId - id of the target item;
- dId - id of the dropped item (has sense for mercy drag-n-drop);
- sObj - source grid object;
- tObj - target grid object;
- sCol - index of the column from which drag started;
- tCol - index of the column in which drop occurs.

             grid.attachEvent("onDrop", function(sId,tId,dId,sObj,tObj,sCol,tCol){});