Reputation: 312
How to create context menu using dojo dgrid? Actually looking for context menu on dgrid, which should appear after "Right Click"of the mouse over row of the grid.
Upvotes: 2
Views: 868
Reputation: 980
There is no ready plug-in that can do that, you can see that on the documentation here there is a comparison table. but there is a a listener that can help you create your own plug in.
grid.on(".dgrid-row:contextmenu", function(evt){
evt.preventDefault(); // prevent default browser context menu
var item = grid.row(evt).data;
// item is the store item
});
you can also read the documentation here
Upvotes: 4