Skip to main content

beforeExpand

fires before expanding a treegrid

beforeExpand: (rowId: string | number) => boolean | void;

Parameters:

The callback of the event is called with the following 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", (rowId) => {
// your logic here
return false;
});

Related sample: TreeGrid. Events

Change log:

added in v6.4