EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: MFS on March 20, 2017, 01:14:28 PM



Title: Right click on datagrid
Post by: MFS 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??


Title: Re: Right click on datagrid
Post by: stworthy on March 20, 2017, 11:17:09 PM
Please try this code:
Code:
$('#dg').datagrid({
  onRowContextMenu: function(e,index,row){
    //...
  }
});


Title: Re: Right click on datagrid
Post by: MFS 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?


Title: Re: Right click on datagrid
Post by: stworthy on March 21, 2017, 07:57:11 PM
Please take a look at this example http://code.reloado.com/avofuw/edit#preview