Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
440
XamDataTree
posted

I use xamDataTree, I want to collect all checked node in xamdatatree. Let me know how can i do it

  • 440
    posted

    I found the answer. here is what i did

     private void GetSelectedNodes(XamDataTreeNodesCollection nodes)
            {
                foreach (XamDataTreeNode node in nodes)
                {
                    if (node.IsChecked == true)
                        _selectedNodes.Add(node);

                    GetSelectedNodes(node.Nodes);
                }
            }

    then i just call the function

     GetSelectedNodes(pgaDataTree.Nodes);