Skip to main content

disable()

pro version only

This functionality requires PRO version of the DHTMLX Grid (or DHTMLX Suite) package.

disables the BlockSelection module and resets processing of block selection in Grid

disable(): void;

Example

const grid = new dhx.Grid("grid_container", {
columns: [
{ id: "a", header: [{ text: "A" }] },
{ id: "b", header: [{ text: "B" }] },
],
data: [
{ id: "1", a: "A1", b: "B1" },
{ id: "2", a: "A2", b: "B2" },
],
blockSelection: true
});

// disabling the block selection module
grid.block.disable();
console.log(grid.block.isDisabled()); // -> true

Related article: Work with BlockSelection module

Related API: enable()

Change log:

added in v9.2