how to get the Root node,child node selected value at a time server said code behind

2 posts, 0 answers
  1. NA
    NA avatar
    39 posts
    Member since:
    Aug 2013

    Posted 22 Jan 2014 Link to this post

    I want Root node , child node only  selected value's individual [ with out array format & check box] of Rad drop down tree  server said code
    pleas help me...

  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 22 Jan 2014 Link to this post


    Please have a look into the following C# code to get the Root nodes, Child Nodes and SelectedValue of RadDropDownTree in RadButton OnClick event.

    protected void RadButton1_Click(object sender, EventArgs e)
        string[] child = new string[50];
        string[] parent = new string[50];
        int i = 0, j = 0;
        foreach (RadTreeNode node in RadDropDownTree1.EmbeddedTree.Nodes)
            parent[j] = node.Text;
            if (node.GetAllNodes().Count != 0)
                foreach (RadTreeNode subnode in node.GetAllNodes())
                    child[i] = subnode.Text;
        string Selectedtext = RadDropDownTree1.SelectedText;
        string Selectedvalue = RadDropDownTree1.SelectedValue;

Back to Top