beforeCollapse
fires before collapsing a treegrid
beforeCollapse: (rowId: string | number) => boolean | void;
Parameters:
The callback of the event is called with the following parameter:
rowId: string | number
- the id of a collapsed row
Returns:
Return false
to block collapsing of a treegrid; otherwise, true
.
Example
treeGrid.events.on("beforeCollapse", (rowId) => {
// your logic here
return false;
});
Related sample: TreeGrid. Events
Change log:
added in v6.4