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

Public
Vera Didenko Flexmonster April 18, 2019

Hello, 

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,
Vera

Please login or Register to Submit Answer