When a user checks or unchecks a node in the tree, we are setting a flag to specify a change has occurred.
So we implemented the NodeChecked CSOM event on the client-side.
Only problem is, this even seems to be going off when the page is first loading up, if any of the nodes are checked. Is there any way to tell in that even, that the screen is just initializing, VS the user actually checked or unchecked the checkbox?
Why is this even going off when the page is originally being rendered?
When I created a separate web form with a webtree, and loaded the nodes manually (no binding) I couldn't reproduce the problem. But, since my current application still fired the NodeChecked event (once for each node, even though the tree was loaded server-side, manually (not bound)) I added this code to the event to fix the problem (incase someone else has this problem).
if (igtree_getTreeById(treeId).isInitializing == true) return false;