Skip to main content

beforeExpand

fires before expanding a treegrid

beforeExpand: (rowId: string | number) => 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;
});

Related sample: TreeGrid. Events

Change log:

added in v6.4