Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2265
Context Popup Menu
posted

Hi All,

Is it possible to display a context menu on the grid when I right-click the mouse?

I want to enable some cut, copy, paste functionality if possible and do this with the selected cells.  I've looked at the Context Sample, but I'm guessing I need to find the javascript that will get the position on the grid/page to display the popup.  So I need to get a reference to the grid by name?  Is this possible?

function

 

UltraWebGrid1_MouseDownHandler(gridName, id, button)
{
}

There are millions of java script files/functions contained in the common scripts folder. I'm browsing through ig_WebGrid.js at the mo.  Is there any nice java script viewers?

Parents
No Data
Reply
  • 2265
    posted

    OK,

    Got the context to display with the following javascript, however, the IE context menu is still displayed:

     

     

     

     

     

    function 

     

    UltraWebGrid1_MouseDownHandler(gridName, id, button){

     

     

    //Add code to handle your event here.
    if (button == 2){
    var  grid = igtbl_getGridById(gridName);

    igmenu_showMenu(

    'UltraWebMenu1', grid.event);

     

     

    return true;

    }

    Any ideas on how to prevent this from displaying?

Children