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

Submit & CheckedNodes

0 Answers 42 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Alan
Top achievements
Rank 1
Alan asked on 01 Feb 2012, 01:12 PM
Hi there,
I've used demo code to get a list of the submitted check boxes from the tree view:

 private static void ShowCheckedNodes(RadTreeView treeView, Label label)
        {
            string message = string.Empty;
           
            IList<RadTreeNode> nodeCollection = treeView.CheckedNodes;
            foreach (RadTreeNode node in nodeCollection)
            {
                message += node.FullPath + "<br/>";
            }
            label.Text = message;
        }

This is all good, however it only shows the Text (Subject_Place ). Each node has an ID number field (SubjectID). Its this ID number I need, rather than the Text.
How can I get this instead of the Text?
Thanks,
Alan 


** UPDATE **
Seems like I've stumbled on the answer myself,  just needed to add:
message += node.Value + "<br/>";

Thanks.

No answers yet. Maybe you can help?

Tags
TreeList
Asked by
Alan
Top achievements
Rank 1
Share this question
or