KaxTreeViewNodeCreated Event |
Occurs when a node is created.
Namespace: Kettic.AspNet.ControlsAssembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntaxpublic event KaxTreeViewEventHandler NodeCreated
Public Event NodeCreated As KaxTreeViewEventHandler
public:
event KaxTreeViewEventHandler^ NodeCreated {
void add (KaxTreeViewEventHandler^ value);
void remove (KaxTreeViewEventHandler^ value);
}
member NodeCreated : IEvent<KaxTreeViewEventHandler,
KaxTreeNodeEventArgs>
Value
Type:
Kettic.AspNet.ControlsKaxTreeViewEventHandler
Remarks
The NodeCreated event is raised when an node in the
KaxTreeView control is created,
both during round-trips and at the time data is bound to the control. The NodeCreated event is not raised for nodes
which are defined inline in the page or user control.
The NodeCreated event is commonly used to initialize node properties.
Examples
The following example demonstrates how to use the
NodeCreated event
to set the
ToolTip property of each node.
protected void KaxTreeView1_NodeCreated(object sender, Kettic.AspNet.Controls.KaxTreeNodeEventArgs e)
{
e.Node.ToolTip = e.Node.Text;
}
Sub KaxTreeView1_NodeCreated(ByVal sender As Object, ByVal e As Kettic.AspNet.Controls.KaxTreeNodeEventArgs) Handles KaxTreeView1.NodeCreated
e.Node.ToolTip = e.Node.Text
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