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

Inherit the the Checked state of the parent Node when loading Nodes on demand

1 Answer 39 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Oren
Top achievements
Rank 1
Oren asked on 01 Feb 2011, 07:38 AM
Hello,

I was trying to implement the code from the following article.
I'm using the server side approach, but i have a problem.

If i expand a parent that has childs and the parent was checked,
When i debug the NodeExpand event handler i see that the e.Node.Checked property of the parent node is always false.
Only if i checked the root parent of the tree i get the desirable result according to my action, the other sub-parents doesn't get it.
protected void RadTreeView1_NodeExpand(object sender, Telerik.Web.UI.RadTreeNodeEventArgs e)
{
//Debug here
RadTreeNode firstChild = new RadTreeNode("new child1", "new1");
firstChild.Checked = e.Node.Checked; //e.Node.Checked is always false!
}

In other words: I don't get any indication that the parent node is checked.(gets always false).
I tried with tristate mode and without tristate mode. and the CheckChildsNodes property is true.

i use version: 2010.3.1109.35

any ideas??

Thanks,
Oren

1 Answer, 1 is accepted

Sort by
0
Nikolay Tsenkov
Telerik team
answered on 04 Feb 2011, 04:35 PM
Hi Oren,

I was not able to reproduce that.
Could you, please, post a sample or open a support ticket and send us a sample project reproducing the problem?


Regards,
Nikolay Tsenkov
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
TreeView
Asked by
Oren
Top achievements
Rank 1
Answers by
Nikolay Tsenkov
Telerik team
Share this question
or