jQuery Treeview:  programmatically open a branch
I'm using the jQuery [Treeview plugin](http://plugins.jquery.com/project/treeview), and I'm wondering if it's possible to programatically open a branch.

I'm using a treeview in conjunction with a series of checkboxes. Each LI node contains checkbox and a label.  The user may expand/collapse branches and check the desired options.  However,  the user may indirectly invoke an ajax call that causes some of the checkboxes to become checked (including checkboxes that are not visible because they are inside of a collapsed node).

So if my ajax callback checks any of my checkboxes I would like to open the branch that contains those checked boxes.  Here was my first attempt:

<code>$('#my_Treeview').find(":checked").closest("li").addClass("open")</code>

Unfortunately this does not work.  Because the treeview contains quite a few elements it isn't practical for me to simply expand all the branches in the first place.


jQuery Treeview:  programmatically open a branch
===

I'm using the jQuery [Treeview plugin](http://plugins.jquery.com/project/treeview), and I'm wondering if it's possible to programatically open a branch.

I'm using a treeview in conjunction with a series of checkboxes. Each LI node contains checkbox and a label.  The user may expand/collapse branches and check the desired options.  However,  the user may indirectly invoke an ajax call that causes some of the checkboxes to become checked (including checkboxes that are not visible because they are inside of a collapsed node).

So if my ajax callback checks any of my checkboxes I would like to open the branch that contains those checked boxes.  Here was my first attempt:

<code>$('#my_Treeview').find(":checked").closest("li").addClass("open")</code>

Unfortunately this does not work.  Because the treeview contains quite a few elements it isn't practical for me to simply expand all the branches in the first place.

