Open sharathdaniel opened 4 years ago
Please read the documentation carefully. First of all you have to initialize the treeview. After that you can apply methods like "checkAll". Check your jsfiddle, I have changed it.
Regarding your requirements:
Some of the items will be checked already, but can be unchecked. This is explained here under "Pre-check": https://github.com/hummingbird-dev/hummingbird-treeview#add-on-options-and-functionality
Some of them might be checked already, but cannot be unchecked. Same as above, but you have to use in addition the "disableNode" method on the nodes.
I should be be able to collapse and expand each node This is default behavior for all "parent" nodes.
After using
$("#treeview").hummingbird("checkAll");
i can't expand the nodes. Even with prechecked items its not possible to expand or collapse.Here's a jsfiddle: https://jsfiddle.net/4o1kh2nq/
What i want to achieve is:
Some of the items will be checked already, but can be unchecked.
Some of them might be checked already, but cannot be unchecked.
I should be be able to collapse and expand each node.