I have to add in children nodes to a RadTreeNode in JavaScript. The Node currently doesn't have any children. We cannot post back or do an AJAX call to get the additonal data (performance isn't good enough, and besides, we have the data locally in JavaScript anyway). However, when there isn't already some children nodes in a RadTreeNode, we get a JavaScript error "get_childListElement(...) is null or undefined" when calling the following code:
radNode.get_nodes().add(childrenNode); |
The following conditions are true:
- radNode is a RadTreeNode that has been created
- It has been added to a RadTreeView already
- set_expanded(true) has already been called on it