Skip to main content

dragItem

Optional. Enables the possibility to reorder treegrid columns by drag and drop

dragItem?: "column", "row", "both";

Example

const treegrid = new dhx.TreeGrid("treegrid_container", {
columns: [
// columns config
],
dragItem: "column",
data: dataset
});

Drag-n-drop can work in three modes:

  • "column" - enables drag and drop of columns
  • "row" - enables drag and drop of rows
  • "both" - enables both modes mentioned above

Related sample: TreeGrid. Drag-n-drop

Related API:

Change log:

  • The "row" and "both" modes have been added in v7.2.
  • The property was added in v6.5.