$("#tree").bind("select_node.jstree", function (e, data) {
$("#tree").jstree("toggle_node", data.rslt.obj);
$("#tree").jstree("deselect_node", data.rslt.obj);
});
This will help you get started in the right direction. You will probably need to filter out which ones will expand or not, depending on the metadata.
source
share