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?
Thank you for your question.
expandAll API call expands all levels for all hierarchies.
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.