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
};
GroupNode.Nodes.Add(nodePending);
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"
nodeUser.Nodes.Add(nodePending);
suggestions?
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
};
GroupNode.Nodes.Add(nodePending);
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"
nodeUser.Nodes.Add(nodePending);
suggestions?