afterCollapse
fires after collapsing Grid in the TreeGrid mode
note
The event works only for Grid with the type: "tree"
configuration option
afterCollapse: (rowId: string | number) => void;
Parameters:
The callback of the event is called with the following parameter:
rowId: string | number
- the id of a collapsed row
Example
const grid = new dhx.Grid("grid_container", {
type: "tree",
columns: [
// columns config
],
data: dataset,
});
grid.events.on("afterCollapse", (rowId) => {
// your logic here
});
Change log:
added in v6.4