Skip to main content

dragMode

enables drag-n-drop in Treegrid

dragMode?: "target" | "source" | "both";

Example

var treegrid = new dhx.TreeGrid("treegrid_container", {     dragMode:"source"});

Related sample: TreeGrid. Setup Drag Mode

Drag-n-drop can work in three modes:

  • "target" - a grid takes rows from other grids, while its rows can't be dragged out of it
  • "source" - a grid allows dragging its rows out and can't take rows from other grids
  • "both" - a grid both takes rows from other grids and allows dragging its rows out as well