I am using the ajax rad treeview control. I am loading treeview nodes on-demand using the serversidecallback property. The treeview control is in a radupdatepanel. I am using checkboxes. When a user expands a node I evaluate whether the node is checked or not in a BuildRADDeptNode Method. If it is checked then the new sub-nodes are checked as well.
The problem is that no matter what the parent nodes state is when it is expanded it also gets passed to the event as a checked = false. This is a real problem.
protected void RadTree1_NodeExpand(object o,RadTreeNodeEventArgs e)
{
RadTreeNode nodeClicked = e.Node;
BuildRADDeptNode(nodeClicked);
pnlDeptTree.Visible = true;
}
Please advise.