KaxTreeViewCheckedNodes Property |
Namespace: Kettic.AspNet.Controls
When check boxes are displayed in the KaxTreeView control (by setting the CheckBoxes property to true), use the CheckedNodes property to determine which nodes display a selected check box. This collection is commonly used to iterate through all the nodes that have a selected check box in the tree.
The CheckedNodes collection is populated using a depth-first traversal of the tree structure: each parent node is processed down to its child nodes before the next parent node is populated.
Protected Sub ShowCheckedNodes(ByVal sender As Object, ByVal e As System.EventArgs) Dim message As String = String.Empty Dim node As KaxTreeNode For Each node In KaxTree1.CheckedNodes message += node.FullPath Next node nodes.Text = message End Sub
protected void ShowCheckedNodes(object sender, System.EventArgs e) { string message = string.Empty; foreach (KaxTreeNode node in KaxTree1.CheckedNodes) { message += node.FullPath + "<br/>"; } nodes.Text = message; }