laptop and a wrench

Error

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

Última publicación: August 25, 2014 No Product Found
Número de ID del error NIM010104
EnviadoJuly 3, 2007
Última modificaciónDecember 20, 2024
Relacionado conNo Product Found
Versión encontrada9.2
EstadoWill Not Be Addressed

Información adicional

No Public Explanation

Solución alternativa

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

Pasos para reproducir

ID del error: NIM010104

Software:

  • No Product Found

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga