Click or drag to resize
KaxTreeViewCheckedNodes Property
Gets a collection of KaxTreeNode objects that represent the nodes in the control that display a selected check box.

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
public IList<KaxTreeNode> CheckedNodes { get; }

Return Value

Type: IListKaxTreeNode
An IList<KaxTreeNode> containing the checked nodes.
Remarks

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.

Examples
[New Example]
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
[New Example]
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;        
}
See Also