I have a tree that I load from the server. I have other buttons that are used to select specific leaf nodes in the tree based upon some selection. I'm having a few issues:
- When I set "checked" on a node, the onCheck function is called. It doesn't hurt anything but can be called a LOT if there are a large number of items to check. I just disable that until I'm finished. So far so good.
- When a leaf is checked, the parent doesn't go to in intermediate state. I can also check that node but it does put a check there. Expanding the parent does expand but it still doesn't set it to intermediate. I haven't found a way to set that manually.
- The biggest issue is that when the code finishes, the tree is reloaded again from the host wiping out all the changes. It seems to do this multiple times. I don't have any explicit code that does that. Not sure what is happening. I've setup onBeforeLoad event to return false until we are done but that only stops the first one. Again, not sure where they are coming from.
Before I go to the next step about filtering the data as it comes from the server based upon what things need to set, is there a better approach here? Is there a way to stop the reload of the tree automatically?
Hopefully someone can point me in the right direction. Thanks in advance!
Bruce