Skip to main content

afterResetRange

pro version only

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

fires after a range has been successfully reset

Usage

afterResetRange: (
range: {
xStart: string | number;
xEnd: string | number;
yStart: string | number;
yEnd: string | number;
}
) => void;

Parameters:

The callback of the event is called with the following parameters:

range(object) the object with the reset range coordinates that contains the following options:
  • xStart - (string | number) the starting column id
  • xEnd - (string | number) the ending column id
  • yStart - (string | number) the starting row id
  • yEnd - (string | number) the ending row id

Example

const grid = new dhx.Grid("grid_container", {
// other configuration
rangeSelection: true
});

grid.range.events.on("afterResetRange", (range) => {
console.log("The range is reset, the previous range is:", range);
});

grid.range.setRange({ xStart: "a", yStart: "1" });
grid.range.resetRange(); // logs the previous range

Change log:

added in v9.2