ESRI.ArcGIS.ADF.Web.UI.WebControls
FeatureContextMenu Property
See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > TaskResults Class : FeatureContextMenu Property




The context menu displayed when the user clicks on a feature (usually third-level) node in the TaskResults.

Syntax

Visual Basic (Declaration) 
<BrowsableAttribute(False)>
Public ReadOnly Property FeatureContextMenu As ContextMenu
Visual Basic (Usage)Copy Code
Dim instance As TaskResults
Dim value As ContextMenu
 
value = instance.FeatureContextMenu
C# 
[BrowsableAttribute(false)]
public ContextMenu FeatureContextMenu {get;}

Remarks

This context menu is used with the task results items in TaskResults. For example, a QueryAttributesTask typically outputs results that are added as a node to the TaskResults control. This top-level node may be expanded to view the layer and feature information in the results. If the user right-clicks on a node for an individual feature (typically a third-level node in the node tree), the FeatureContextMenu displays.

By default, the TaskResultContextMenu has choices to zoom to the feature, pan to the feature, and remove the feature from the results set. These items may be modified programmatically by accessing this property at runtime. On session startup, these items may be accessed at the PreRenderComplete stage. If modifying items during a callback, the CallbackResults would have to be set to replace the content of the context menu.

See Also

© 2010 All Rights Reserved.