This is a migrated thread and some comments may be shown as answers.

TreeView Nodes Missing!?

0 Answers 89 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Ciaran
Top achievements
Rank 1
Ciaran asked on 26 Mar 2013, 02:12 PM
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 :)

No answers yet. Maybe you can help?

Tags
TreeView
Asked by
Ciaran
Top achievements
Rank 1
Share this question
or