There are functions in the public API to collapse and expand the tree levels:
collapse - Recursively hide all node's children in a tree.
expand - Recursively show all node's children in a tree.
I would like to add a button that collapses or expands all levels of the tree. I can't get this to work - I can expand/collapse one level of the tree with code like this:
$("tr.er-level-3").collapse();
er-level is a class for the rows in the third level.
Any ideas?
Thanks.