I am traversing a treenode and wish to skip over a parent node (which I know the forecolor is blue). Here is my code. The below code simply traverses the nodes from one to the next regardless of being a parent or not.
How can I accomplish this?
RadTreeNode
currentNode = RadTreeView1.SelectedNode;
if (currentNode.Next != null)
currentNode.Next.Selected =
true;
else if (currentNode.ParentNode != null)
{
if (currentNode.ParentNode.Next != null)
currentNode.ParentNode.Next.Selected =
true;
}
How can I accomplish this?