DHTMLX Docs & Samples Explorer

enableDragAndDrop(mode)

Required library edition: This method works with any edition of DHTMLX library
Required library file: dhtmlxgrid_drag.js

enable/disable drag-and-drop

  • mode - enabled/disabled [ can be true/false/temporary_disabled - last value mean that tree can be D-n-D can be switched to true later ]
   //enable drag-and-drop
   mygrid.enableDragAndDrop(true);
   //disable drag-and-drop
   mygrid.enableDragAndDrop(false);

See also: enableMercyDrag, enableDragOrder