open_all,close_all not working

425 views
Skip to first unread message

Mohanraj chozhan

unread,
Oct 13, 2010, 10:14:36 AM10/13/10
to jsTree
jQuery.jstree._reference($(treeId)).open_all();

treeId is my tree object. same for the close as well.

closing function triggering but tree doesn't closing at all.

I'm using the version 1.0-rc1. Please help me out from this

vakata

unread,
Oct 15, 2010, 4:51:30 AM10/15/10
to jsTree
How do you obtain treeId - is is the DOM node extended with jquery or
is it the ID of the dom node, or is it the tree instance.

Try using:
1) jQuery(treeId).jstree("open_all")
2) treeId.open_all();
3) jQuery.jstree._reference(treeId).open_all();

Depending on what treeId is - at least one of the above will work ;)
Sorry I cannot be specific but I do not know what the treeId object
is :)

Kindest regards,
Ivan
Reply all
Reply to author
Forward
0 new messages