Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
143215 | Mar 9,2019 02:34 PM UTC | Mar 13,2019 04:03 AM UTC | JavaScript - EJ 2 | 5 |
![]() |
Tags: Grid |
var flag = false;
var grid = new ej.grids.Grid({
...
rowSelecting:function(args){
if(flag == true){
args.cancel = true; //cancel the selection during opening context menu by right click
flag = false;
}
},
...
});
grid.appendTo('#Grid');
document.getElementById("Grid").addEventListener('mousedown',function(args){
if(args.which == 3){ //check for the right click mouse button
flag = true;
}
}) |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.