EasyUI Forum
November 30, 2025, 09:32:45 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: identify field (column) of datagrid  (Read 8725 times)
iskandarkbr
Newbie
*
Posts: 36


View Profile Email
« on: March 21, 2015, 01:02:37 AM »

how to identify the field name that i click into a cell or enter a cell?
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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){
    //..
  }
});
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!