laptop and a wrench

漏洞

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

上次发布: August 25, 2014 No Product Found
漏洞 ID 编号 NIM010104
已提交July 3, 2007
上次修改时间December 20, 2024
适用范围No Product Found
找到的版本9.2
状态Will Not Be Addressed

附加信息

No Public Explanation

解决办法

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

重现步骤

漏洞 ID: NIM010104

软件:

  • No Product Found

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项