Skip to main content

beforeCollapse

fires before collapsing a treegrid

beforeCollapse: (rowId: Id) => boolean | void;

Parameters:

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", function(rowId) {    // your logic here    return false;});

Change log:

added in v6.4