Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Tejas Shah on Oct 15, 2008 07:37
open dhtmlx forum
DHX Grid: Column Header Context Menu not showing in Safari

Hi there,
Why Column Header Context Menu not showing in Safari ?
I have written something like this..


     colMenu = new dhtmlXContextMenuObject();
     colMenu.menu.loadXML("<%=path%>/xml/context/colMenuOptions.xml");
     colMenu.setContextMenuHandler(colMenuClicked);
                                        
     for (var i=0; i<libTableGrid.getColumnsNum(); i++)
        colMenu.setContextZone(libTableGrid.hdr.rows[1].cells[i],i); // libTableGrid is Grid Object.
Answer posted by Support on Oct 15, 2008 09:34
Which version of Safari are you using ? is issue occurs for Safari for PC or Safari for Mac ?
There is known limitation, Safari 2.x doesn't allow to override context menu of browser - so it not possible to show context menu by right click there.
Answer posted by Tejas Shah on Oct 15, 2008 21:13
Hi there,
             I am using Safari for Windows PC v 3.0.2.
             The normal context menu for all rows works fine, why this one doesn't work for Column Header Context Menu ?
Answer posted by Support on Oct 16, 2008 04:55
The context menu integration with grid uses additional event handling, it not relay on setContextZone method of menu. 
But in case of Safari 3.x for Windows problem can't be reconstructed - used sample sent by email.