EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: iskandarkbr on March 21, 2015, 01:02:37 AM



Title: identify field (column) of datagrid
Post by: iskandarkbr on March 21, 2015, 01:02:37 AM
how to identify the field name that i click into a cell or enter a cell?


Title: Re: identify field (column) of datagrid
Post by: stworthy on March 22, 2015, 01:13:08 AM
The 'onClickCell' event can give you 'index','field' and 'value' parameter values.
Code:
$('#dg').datagrid({
  onClickCell: function(index,field,value){
    //..
  }
});