Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
143449 | Mar 20,2019 02:58 PM UTC | Mar 21,2019 04:52 AM UTC | Angular - EJ 2 | 1 |
![]() |
Tags: Grid |
<ejs-grid #Grid [dataSource]='data' ... (rowSelecting)="rowSelecting($event)" (created)="created($event)">
...
</ejs-grid>
[ts]
created(args){
this.grid.element.addEventListener('mousedown',function(args){
if(args.which == 3){ //check for the right click mouse button
this.flag = true;
}
}.bind(this))
}
rowSelecting(args){
if(this.flag == true){
args.cancel = true; //cancel the selection during opening context menu by right click
this.flag = false;
}
} |
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.