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

2 posts, 0 answers
  1. Oren
    Oren avatar
    6 posts
    Member since:
    Dec 2010

    Posted 01 Feb 2011 Link to this post

    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
  2. Nikolay Tsenkov
    Admin
    Nikolay Tsenkov avatar
    734 posts

    Posted 04 Feb 2011 Link to this post

    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.
Back to Top