TriState-Status

3 posts, 1 answers
  1. FLIDEV
    FLIDEV avatar
    56 posts
    Member since:
    Dec 2006

    Posted 06 Oct 2009 Link to this post

    Hello,

    I have an treeview with chekcboxes and tristatecheckboxes ist true. Is it possible to get the intermediate state of an parent node? The node is in the CheckedNodes-collection, but I can't find any property to differ the state.

    I hope, anybody can help me.

    Detlef!
  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 07 Oct 2009 Link to this post

    Hello,

    You could use the CheckState property of RadTreeNode in order to check chckbox state.

    C#:
     
    protected void RadTreeView1_NodeCheck(object sender, Telerik.Web.UI.RadTreeNodeEventArgs e) 
        RadTreeNode node = (RadTreeNode)e.Node; 
        if( node.ParentNode.CheckState == TreeNodeCheckState.Indeterminate) 
        { 
            Response.Write("Intermediate"); // Intermediate state 
        } 

    -Shinu.
  3. FLIDEV
    FLIDEV avatar
    56 posts
    Member since:
    Dec 2006

    Posted 07 Oct 2009 Link to this post

    Hello Shinu,

    thank you for your answer. That is what I wanted.

    Detlef!
Back to Top