Skip to main content

enable()

pro version only

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

enables the BlockSelection module and activates the capabilities of block selection in Grid

enable(): void;

Example

// this example shows enabling the module after deactivation
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: { disabled: true } // disabled on initialization
});

grid.block.enable(); // activating the module
console.log(grid.block.isDisabled()); // -> false

Related article: Work with BlockSelection module

Related API: disable()

Change log:

added in v9.2