collapse()
collapses a tree node by id
note
The method works only for Grid with the type: "tree"
configuration option
collapse(id: string | number): void;
Parameters:
id: string | number
- the id of a node to collapse
Example
const grid = new dhx.Grid("grid_container", {
type: "tree",
columns: [
// columns config
],
data: dataset,
});
grid.collapse("native");