laptop and a wrench

Bogue

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

Dernière publication: August 25, 2014 No Product Found
Numéro d’ID de bogue NIM010104
EnvoiJuly 3, 2007
Dernière modificationDecember 20, 2024
S’applique àNo Product Found
Version trouvée9.2
StatutWill Not Be Addressed

Informations supplémentaires

No Public Explanation

Solution de contournement

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

Étapes pour reproduire

ID de bogue: NIM010104

Logiciel:

  • No Product Found

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement