There are two ways to get real parent node:
1. If you know the nested viewport that contains a node:
[c#]
public NodeBase GetParentNode(FlyGridViewPort port)
{
return port.Holder;
}
2. If you don't know the nested viewport:
[c#]
public NodeBase GetParentNode(NodeBase node)
{
NodeBase parent = node.Parent;
INestedRoot nestedRoot = parent as INestedRoot;
return nestedRoot != null ? nestedRoot.Holder : parent;
}