A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.dhtmlx.com/suite/grid/api/grid_dragmode_config/ below:

Website Navigation


JavaScript Grid - dragMode Config

dragMode

Optional. Enables drag-n-drop in Grid

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

Example

const grid = new dhx.Grid("grid_container", {
columns: [
// columns config
],
dragMode:"source"
});

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

info

Enable multiselection of rows to allow a user to drag-n-drop multiple rows at once.

Related sample: Grid. Drag-n-drop between grids


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4