Skip to main content

beforeExpand

fires before expanding a treegrid

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

Parameters:

rowId: string | number - the id of an expanded row

Returns:

Return false to block expanding of a treegrid; otherwise, true.

Example

treeGrid.events.on("BeforeExpand", function(rowId) {    // your logic here    return false;});

Change log:

added in v6.4