Sharepoint style left click context menuin dthmlxgrid

Is it possible to have left mouse button context menu in dthmlxgrid like in Microsoft sharepoint?



See



asp.net/AJAX/AjaxControlTool … pDown.aspx



for an example.


Grid doesn’t provide a ready solution. But there is onMouseOver that allows to get target html element. So, you can get its position and show the necessary container in it:


grid.attachEvent(“onMouseOver”, function(rowId,cellIndex){



var td_elem = grid.cells(rowId,cellIndex).cell;


/your code here/


})



There are several ways to implement such context menu

1. You can use “coro” eXcell type and use mode when cell editor opens by single click:
mygrid.enableEditEvents(true,true,true);
Please find example here dhtmlx.com/docs/products/dhtmlxG … #grid_cexc.

Hi,

Do anyone have an example for this problem (left mouse button context menu in dthmlxgrid like in Microsoft sharepoint). If so can you please send me the sample or post it here. I need to implement it in my app.

Thanks in advance.

Thanks,
Jaya.