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




The context menu displayed when the user right-clicks on one of top nodes in the task results.

Syntax

Visual Basic (Declaration) 
<BrowsableAttribute(False)>
Public ReadOnly Property TaskResultContextMenu As ContextMenu
Visual Basic (Usage)Copy Code
Dim instance As TaskResults
Dim value As ContextMenu
 
value = instance.TaskResultContextMenu
C# 
[BrowsableAttribute(false)]
public ContextMenu TaskResultContextMenu {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 clicks on the top-level result node, the TaskResultContextMenu displays.

By default, the TaskResultContextMenu has choices to refresh the task, to run the task again, and to remove the task results. 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.