Check documentation for the latest version of dhtmlxSuite onAfterDrop DHTMLX Docs


fires when the drag-n-drop operation is finished

void onAfterDrop(object context,Event object event);
contextobjectcontext object
eventEvent objectnative HTML event


myDataView.attachEvent("onAfterDrop", function (context,ev){
     // your code here


possible values of the context object:

  • context.start - ID of an item, from which the dragging process has started
  • context.source - array of the dragged IDs (drag source)
  • - ID of the target item (drop target)
  • context.from - view object to which the dragged item belongs
  • - view object to which the drop target belongs
  • context.index - index in the target view at which new item will be added
  • context.new_id - id which will be used for the moved item (actual only while moving between different views)
Back to top