laptop and a wrench

Bug

Changing the text of a TaskResults control's ContextMenuItem prevents the item's click event from executing properly.

Last Published: August 25, 2014 No Product Found
Bug ID Number NIM010104
SubmittedJuly 3, 2007
Last ModifiedDecember 20, 2024
Applies toNo Product Found
Version found9.2
StatusWill Not Be Addressed

Additional Information

No Public Explanation

Workaround

I don't know why this workaround works, but it does:In page load, run code (like that below) that will reset the menu caption to its original value ("Remove", e.g.). The altered caption will appear in the menu (TaskResults_Load will run after page load), but now the click event will run as expected (!).//call this function at the end of Page_Load - ResetItemText(2, "Remove"); void ResetItemText(int itemIndex, string itemCaption) { ContextMenu mnuResultsCtx = TaskResults1.TaskResultContextMenu; if (mnuResultsCtx.Items.Count > 0) { ContextMenuItem cmi = (ContextMenuItem)mnuResultsCtx.Items[itemIndex]; cmi.Text = itemCaption; } }

Steps to Reproduce

Bug ID: NIM010104

Software:

  • No Product Found

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options