|
Rank: Advanced Member Groups: Member
Joined: 2/4/2009 Posts: 31
|
Hi,
I cannot seem to get a context menu to show up when I right click.
I sent sample code to the support address.
Thanks!
Brad
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, Please change your context menu handler code to this:
Code: JavaScript
function loceqtreeShowContextMenu(e, treeView, node) {
if (!e)
e = window.event;
var eventInfo = new Object();
eventInfo.srcElement = e.srcElement;
eventInfo.target = e.target;
eventInfo.clientX = e.clientX;
eventInfo.clientY = e.clientY;
setTimeout(function()
{
eo_ShowContextMenu(eventInfo, "<%=Menu1.ClientID%>");
}, 100);
return true;
}
Note it made a copy of the event information and then delayed the call to eo_ShowContextMenu. Please let us know if it works for you. Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 2/4/2009 Posts: 31
|
You guys are awesome! Thanks!!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Great. Thanks for confirming that it works for you!
|
|