EasyUI Forum
April 19, 2024, 01:39:39 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: Right click on datagrid  (Read 5701 times)
MFS
Newbie
*
Posts: 47



View Profile
« on: March 20, 2017, 01:14:28 PM »

Hello.
Is there any sample how to make right click on datagrid with options like edit or delete clicked row??
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: March 20, 2017, 11:17:09 PM »

Please try this code:
Code:
$('#dg').datagrid({
  onRowContextMenu: function(e,index,row){
    //...
  }
});
Logged
MFS
Newbie
*
Posts: 47



View Profile
« Reply #2 on: March 21, 2017, 12:08:41 AM »

OK, I know that.
But can you give to me sample with edit od right click to data grid.
How to start js function for edit?
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #3 on: March 21, 2017, 07:57:11 PM »

Please take a look at this example http://code.reloado.com/avofuw/edit#preview
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!