Submit & CheckedNodes

1 posts, 0 answers
  1. Alan
    Alan avatar
    1 posts
    Member since:
    Sep 2012

    Posted 01 Feb 2012 Link to this post

    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?

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

Back to Top