Hi,
thanks for the fast support. I've tried implementing the hint you gave
me. The following is a piece of the generated JSON:
[{"data":"b:default","attr":{"id":"b:default","class":"jstree-
checked"},"state":"closed"},{"data":"b:core","attr":
{"id":"b:core"},"state":"closed"}]
As you can see the nodes classes should contain jstree-checked. As
soon as the tree is loaded, none of the two nodes are marked as
checked. In opposition to that
jQuery("#tree").jstree("get_checked");
returns the two nodes, even though they are not displayed as checked.
Inspecting the tree with FireBug sheds a bit light on the cause of the
problem - the classes of the nodes are:
jstree-checked jstree-closed jstree-unchecked
So what happens is, that the browser parses the unchecked rule lastly
wherefore the checkboxes are not checked. Is that a bug? Or how is it
possible for a node to have both classes? Is there any workaround?
Cheers,
Fabian