TreeView Nodes Missing!?

1 posts, 0 answers
  1. Ciaran
    Ciaran avatar
    1 posts
    Member since:
    Mar 2013

    Posted 26 Mar 2013 Link to this post

    Hi 

    i have created a query for my treeview hierarchy and it displays fine, i have also added the tootip value and can see this for each level - a sample is below

    001 (company)
    001001 (company & location)
    001001005 (company & location & module)
    001001005001 (company & location & module & addon)
    001001005002 (company & location & module & addon)
    001001005003(company & location & module & addon)
    001001005004(company & location & module & addon)
    001001005005(company & location & module & addon)

    As i say this renders fine but my problem is that when i try to get the values of what the user selects some values are missing from in this instance 001001005002

    Here is a snippet of my code

    public void saveCheckedPrivileges()
    {
        int test = RadTreeView2.CheckedNodes.Count;
        if (RadTreeView2.CheckedNodes.Count > 0)
        {
            IList<RadTreeNode> nodeCollection = RadTreeView2.CheckedNodes;
            string startingRec = null;
            string[] val = null;<br>               
            List<string[]> valsToStore = new List<string[]>();
            foreach (RadTreeNode node in nodeCollection)
            {
                 string fileid = node.Value.ToString();
                 //Do Whatever with checked value
            }
    }

    i've also tried with GetAllNodes() and the result is the same - any help would be greatly appreciated :)

Back to Top