how can i add/copy a node to two parents

3 posts, 0 answers
  1. randall
    randall avatar
    40 posts
    Member since:
    Apr 2009

    Posted 17 Dec 2014 Link to this post

    Hi, i need to know how to create/copy a node to a different parent.
    in my tree structure i have a root and groups. when i'm  down inside a group i also want to make a copy of the node and add it to a different group.

    in my code i have this which add the pending user node to the GroupNode.

                        RadTreeNode nodePending = new RadTreeNode()
                            Value = group.Id.ToString() + "|" + invitation.Id.ToString(),
                            ForeColor = System.Drawing.Color.Gray


    i would like to add "nodePending" to a different group which was create here in a different loop

                    RadTreeNode nodeUser = new RadTreeNode()
                    Text = "(Users)",

    the problem is if i use the following code below it does not like me putting in "nodeuser.Nodes.add"



  2. randall
    randall avatar
    40 posts
    Member since:
    Apr 2009

    Posted 18 Dec 2014 Link to this post

    anyone have a suggestion?
  3. Peter Filipov
    Peter Filipov avatar
    1028 posts

    Posted 22 Dec 2014 Link to this post

    Hi Randall,

    I am not quite sure what you want to achieve. Could you please isolate the case into a runnable page and send it back. One suggestion is to store the created node to a global variable which you could access in the second loop.

    Peter Filipov

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top