Skip to main content

collapseAll()

collapses all expanded rows that contain child rows

note

The method works:

  • for Grid in the default mode with the subRow configuration option
  • for Grid in the TreeGrid mode (with the type: "tree" configuration option)

collapseAll(): void;

Example

const grid = new dhx.Grid("grid_container", {
type: "tree",
columns: [
// columns config
],
data: dataset,
});

grid.collapseAll();

Change log:

added in v6.3