Get Free Trial
API reference
Table of contents

expandAllData

expandAllData(withAllChildren: Boolean, type: String)

[starting from version: 1.4]

Expands all fields and drills down all multilevel hierarchies in rows, columns, or rows and columns. Works for the grid and the charts.

Parameters

  • withAllChildren optional – Boolean. Indicates whether multilevel hierarchies should be drilled down. Set it to false if you want to expand fields without the drill-down. When set to true, the drill-down is performed as well. Default value: true.
  • type optional – String. Specifies where to expand fields and drill down multilevel hierarchies: in rows ("rows"), in columns ("columns"), or in rows and columns ("all"). Default value: "all".

Examples

1) Expands all fields and drills down all multilevel hierarchies in the slice.

flexmonster.expandAllData();

Try the example on JSFiddle.

2) Expands all fields in the slice but does not drill down multilevel hierarchies.

flexmonster.expandAllData(false);

3) Expands all fields and drills down all multilevel hierarchies in rows.

flexmonster.expandAllData(true, "rows");

See also

expandData
collapseAllData
collapseData