I am using the following code:
$("#treeview").jstree(); $("#treeview").jstree(\'open_all\');
With the following html:
I tried all the answers here and they didn't work with jsTree (v3.3.4). What worked is the load_node.jstree event:
load_node.jstree
.on( 'load_node.jstree', function () { jstree.jstree( "open_all" ); } )