dojo - How to enable the browser context menu in dojox.grid.DataGrid? -
I am a dojo.grid. I'm trying to get the Browser context menu to work inside the DataGrid. When I right-click on the grid, nothing happens, I tried to override the cellcontext menu, onRowContextMenu, doContextMenu, and oncontextmenu with a blank function on the grid instance, but it was not working. The method is called right-click on the CellTontax menu, but it still does not show reference menu. I think the event is being stopped at the second level, but I'm not sure where to see me.
The grid has a list of links, and I want the users to be able to right click on the link so they can open them in a new tab I know that I have to provide that functionality I can create a custom context menu for, but I would like to know how to disable this behavior in the future.
I know that this may be a bit late, but I went to the same exact problem and By studying a solo code and needing to create a custom grid widget in the Dojo community chat solution, which contains the following modifications:
-
Create a custom _focus manager, which is your custom Will use the grid, where the only update to remove the functionality of the DanteTestMenu method By default, implement a dojo.stopEvent -
// extension ContextMenu dojo.stopEvent dojo.declare ('myGrid.dojox.grid._FocusManager' to remove, dojox.grid._FocusManager, {doContextMenu: function () {}});
-
Remove the original callback in the grid that executes dojo.stopEvent by default:
// Remove the original callback that is called Call StopEvent
onRowContextMenu: function (e) {}, onHeaderContextMenu: function (e) {}
here is a job For example, I was given in community chat:
Comments
Post a Comment