Welcome Guest Search | Active Topics | Sign In | Register

Context menu for treeview inside dialog Options
Brad Coble
Posted: Thursday, January 7, 2010 7:39:39 AM
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
eo_support
Posted: Thursday, January 7, 2010 10:14:23 AM
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!
Brad Coble
Posted: Thursday, January 7, 2010 12:45:19 PM
Rank: Advanced Member
Groups: Member

Joined: 2/4/2009
Posts: 31
You guys are awesome! Thanks!!
eo_support
Posted: Thursday, January 7, 2010 12:49:04 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Great. Thanks for confirming that it works for you!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.