expand
fires before collapsing a treegrid
note
The event works only for Grid with the type: "tree"
configuration option
expand: (rowId: string | number) => void;
Parameters:
The callback of the event is called with the following parameter:
rowId: string | number
- the id of an expanded row
Example
const grid = new dhx.Grid("grid_container", {
type: "tree",
columns: [
// columns config
],
data: dataset,
});
grid.events.on("expand", (rowId) => {
// your logic here
});