ESRI.ArcGIS.ADF.Web.UI.WebControls
NodeRemoving Event
See Also  Send Feedback
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > TreeViewPlus Class : NodeRemoving Event




Event that is called when a node is about to be removed.

Syntax

Visual Basic (Declaration) 
<ResDescriptionAttribute("Fires when a node is about to be removed.")>
Public Event NodeRemoving As TreeViewPlusNodeRemovingEventHandler
Visual Basic (Usage)Copy Code
Dim instance As TreeViewPlus
Dim handler As TreeViewPlusNodeRemovingEventHandler
 
AddHandler instance.NodeRemoving, handler
C# 
[ResDescriptionAttribute("Fires when a node is about to be removed.")]
public event TreeViewPlusNodeRemovingEventHandler NodeRemoving

Event Data

The event handler receives an argument of type CancelableTreeViewPlusNodeEventArgs containing data related to this event. The following CancelableTreeViewPlusNodeEventArgs properties provide information specific to this event.

PropertyDescription
Cancel Handlers can set this property to 'true' to cancel an associated event. For example, if Cancel is set to 'true' when handling the Removing event, then the node will not be removed and the NodeRemoved event will not be fired.
Node (Inherited from ESRI.ArcGIS.ADF.Web.UI.WebControls.TreeViewPlusNodeEventArgs)The TreeViewPlusNode associated with the event.

Remarks

You can set the Cancel property to true in an event handler to prevent the node from being removed.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2011 All Rights Reserved.