laptop and a wrench

Bug

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

Zuletzt veröffentlicht: August 25, 2014 No Product Found
Bug-ID-Nummer NIM010104
EingereichtJuly 3, 2007
Zuletzt geändertDecember 20, 2024
Gilt fürNo Product Found
Gefunden in Version9.2
StatusWill Not Be Addressed

Zusätzliche Informationen

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; } }

Schritte zur Reproduzierung

Bug-ID: NIM010104

Software:

  • No Product Found

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln