KaxTreeViewNodeExpand Event |
Occurs when a node is expanded.
Namespace: Kettic.AspNet.ControlsAssembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax public event KaxTreeViewEventHandler NodeExpand
Public Event NodeExpand As KaxTreeViewEventHandler
public:
event KaxTreeViewEventHandler^ NodeExpand {
void add (KaxTreeViewEventHandler^ value);
void remove (KaxTreeViewEventHandler^ value);
}
member NodeExpand : IEvent<KaxTreeViewEventHandler,
KaxTreeNodeEventArgs>
Value
Type:
Kettic.AspNet.ControlsKaxTreeViewEventHandlerRemarks
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);
}
Sub KaxTreeView1_NodeExpanded(ByVal sender As Object, ByVal e As Kettic.AspNet.Controls.KaxTreeNodeEventArgs) Handles KaxTreeView1.NodeExpanded
Dim nodeCreatedOnDemand As KaxTreeNode = New KaxTreeNode("Node created on demand")
e.Node.Nodes.Add(nodeCreatedOnDemand)
End Sub
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
See Also