I want to be able to toggle the expand/collapse state of a node but I can't see how to tell what it's current state is.
Basically, when a user clicks on a node, if that node has children and it's collapsed, expand it. If it's expanded, then collapse it.
Seems simple enough, but right now it's over my head.
Any help would be great!
Thanks … Ed