Skip to main content

expand()

expands a row that contains 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)

expand(id: string | number): void;

Parameters:

  • id: string | number - the id of a row to expand

Example

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

grid.expand("native");