This is a migrated thread and some comments may be shown as answers.

[Solved] LoadOnDemand clears Checkboxes

1 Answer 117 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 08 Apr 2009, 06:12 PM
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.

 

 

1 Answer, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 10 Apr 2009, 03:23 PM
Hi Michael Sheppard,

I followed the article Inherit the the Checked state of the parent Node when loading Nodes on demand
and the checked state was propagated to the child nodes.

What is different in your case?

Sincerely yours,
Veselin Vasilev
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
TreeView
Asked by
Michael
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Share this question
or