I am using the following code:
$("#treeview").jstree(); $("#treeview").jstree(\'open_all\');
With the following html:
use simple code
$(".jstree").jstree().on('loaded.jstree', function () { $(".jstree").jstree('open_all'); })