Click or drag to resize
KaxTreeViewNodeExpand Event
Occurs when a node is expanded.

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
public event KaxTreeViewEventHandler NodeExpand

Value

Type: Kettic.AspNet.ControlsKaxTreeViewEventHandler
Remarks

The NodeExpand event will be raised for nodes whose ExpandMode property is set to ServerSide or ServerSideCallback.

The NodeExpand event is commonly used to populate nodes on demand.

Examples
The following example demonstrates how to use the NodeExpand event to populate nodes on demand.
protected void KaxTreeView1_NodeExpanded(object sender, Kettic.AspNet.Controls.KaxTreeNodeEventArgs e)
{
    KaxTreeNode nodeCreatedOnDemand = new KaxTreeNode("Node created on demand");
    e.Node.Nodes.Add(nodeCreatedOnDemand);
}
See Also