gijgo: EnableAll breaks childs

I have a multiple level tree which checkboxes When dynamically loading which nodes should be checked from my backend, I disable the treeview using the next code line:

$('#tree').tree().disableAll();

Once the data is loaded and all the nodes checked, I enable the tree back with the next code line:

$('#tree').tree().enableAll();

Now the problem is that this last code line breaks the tree levels. I am still able to open top parents, but not their children. I will find a way to make what I need work and put it in comments.

Cheers.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 34 (4 by maintainers)

Most upvoted comments

We are going to improve the documentation for the select event. Thanks for the feedback.