I am trying to got list of all node from tree, when click button outside tree. I got list of all selected node from tree, but having problem with got list of all node from tree.
Here is my code:
$(document).on('click', '.del', function () {
var selKeys = $.map($('#tree1111').fancytree('getTree').getSelectedNodes(), function (node) {
return node;
});
});
I try this but not working
var allKeys = $.map($('#tree1111').fancytree('getTree'), function (node) {
return node;
});
$.each(allKeys, function (event, data) {
alert(data.key)
});