DHTMLX Docs & Samples Explorer

Index
dhtmlxgrid
API Methods

### enableDragAndDrop(mode)

Required library edition:
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