EasyUI Forum
May 03, 2024, 04:29:43 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to Disable Right Mouse Click on DataGrid  (Read 7722 times)
pratikk
Newbie
*
Posts: 49


View Profile Email
« on: January 03, 2014, 08:31:39 AM »

As I mentioned in the title, when I right click on the lines of datagrid I want to disable the popup menu
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: January 03, 2014, 05:19:53 PM »

Try this.
Code:
$(function(){
$('#dg').datagrid({
onRowContextMenu:function(e){
e.preventDefault();
}
});
});
Logged
pratikk
Newbie
*
Posts: 49


View Profile Email
« Reply #2 on: January 03, 2014, 11:02:20 PM »

Thank you stworthy. I catched  the trick Wink
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!