Checkbox not updated

Hello,
In my application I am using two tree view,one in a left frame and another in edit menu.My requirement is to update the second tree as per the first one.All details are attached as a picture.I am using two method called saveOpenStates() and loadOpenStates() which update only the open states in treeview.But I am unable to update the check state in second tree as per the first tree.So con you tell me the process in details or any particular method that fulfils my requirement.
Thanks in advance…


Check that answer viewtopic.php?f=3&t=13647&p=40115#p40115

Tree doesn’t provide a ready solution to save checked state in cookie. You may try to use the approach from the above post to get list with ids of checked nodes. Save the list is cookie.

To restore the checked state you may use setCheck method:

tree.setCheck(itemId,true);