0

In my application I am switching between selectMode 1 and 3, based on what user has set the options. When I'm in selectMode 3, I choose some nodes. Then I switch to selectMode 2. If I try to unselect a node now, it will not be unselected and gets filled (see the screenshot) until I refresh the page: After I refresh the page it work as it should. enter image description here

I there is a way to fix this. Thanks in advance

arvind
  • 189
  • 3
  • 19

1 Answers1

0

You could try to call tree.render(true, true) or tree.reload().

If this doesn't work, you can always traverse the tree in selectMode 2 with tree.visit() and tweak the node.selected and node.partSel properties.

mar10
  • 14,320
  • 5
  • 39
  • 64
  • Thanks a lot for help. I will try all of them. And I will try to also to make a jsFiddle or Plunkr sample. Thanks again! – arvind Oct 05 '17 at 06:27