Beispiel #1
0
        private static void ExpandAllNodes(RenderHierarchy rh, TreeGridNode node)
        {
            if (IsExpansionRequired(node))
            {
                if (node.Tag is ICollection)
                {
                    rh.ExpandCollectionNode(node);
                }
                else
                {
                    rh.ExpandObjectNode(node, true);
                }
            }

            foreach (TreeGridNode current in node.Nodes)
            {
                ExpandAllNodes(rh, current);
            }
        }
Beispiel #2
0
 public void ExpandTreeNode(TreeGridNode node, bool activate)
 {
     if (IsCollection(node.Tag))
     {
         clsRenderHierarchy.ExpandCollectionNode(node);
     }
     else if (IsArray(node.Tag))
     {
         clsRenderHierarchy.ExpandArrayNode(node);
     }
     else if (IsPrimitive(node.Tag))
     {
         return;
     }
     else
     {
         clsRenderHierarchy.ExpandObjectNode(node, activate);
     }
 }