Skip to main content


Optional. Enables drag-n-drop in DataView

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


const dataview = new dhx.DataView("dataview_container", { 

Related sample: Dataview. Drag'n'drop

Drag-n-drop can work in three modes:

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