2

Using persistence with dynatree, when the tree is re-loaded, I want to get all selected nodes, in order to send them in a request. How can I do that ? I've only found a way to get selected nodes with the onSelect event.

JPJ
  • 29
  • 1
  • 3

1 Answers1

9

This will return all selected nodes :

var selKeys = $.map($("#tree").dynatree("getSelectedNodes"), function(node) {
                            return node.data.key;
                        });
xsinisa
  • 114
  • 7