🍉 Meet Flexmonster Pivot Table & Charts 2.9.Check out all hot features!
Get Free Trial

Expand levels in grid

vasu asked on April 17, 2019

How can we expand 2 levels with dynamic data?
currently we have expand-all function, this will expands all levels, but i need 2 levels of expands…
how can we handle this with dynamic data?

1 answer

Vera Didenko Vera Didenko Flexmonster April 18, 2019


Thank you for your question.

The expandAll API call expands all levels for all hierarchies.
The expandData API call expands all nodes of the specified hierarchy. Please note, this method works only for CSV, OCSV and JSON data sources.
A possible solution is to implement the desired output manually.
Here is a JSFiddle example for illustration.
In the JSFiddle you can see how only two levels are expanded for Australia.

Please let us know if you have further questions.

Best Regards,

Please login or Register to Submit Answer