3

I tried to use this:

$("#jstree_demo_div").jstree("destroy").empty();  

It removes the checked nodes and reload the tree but does not apply the new changes. Any suggestion will be greatly appreciated.

Globally I need to reset my tree with unchecked checkBox

Idris
  • 997
  • 2
  • 10
  • 27
user3542482
  • 249
  • 4
  • 10

2 Answers2

12

this is working nice for me !

 $('#jstree_demo_div').jstree(true).deselect_all();
Cfreak
  • 19,191
  • 6
  • 49
  • 60
user3542482
  • 249
  • 4
  • 10
2

for checking all the checkboxes

$("#jstree").jstree(true).check_all();

for unchecking all the checkboxes

$("#jstree").jstree(true).uncheck_all();
Ravindra Gupta
  • 1,256
  • 12
  • 42