When I use the following Fancytree even action:
$(document).on('click', '.expand-all', function () {
$.ui.fancytree.getTree().expandAll();
});
Fancytree only expands current nodes but not more level sub/nested nodes. Suppose following doesn't happen same time:
How do I achieve that on single event?


I have figured out it and done this way: