EasyUI Forum
May 17, 2024, 01:59:22 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Question about datagrid-cellediting.js  (Read 10070 times)
A-K
Full Member
***
Posts: 122


View Profile WWW
« on: July 30, 2015, 02:32:43 AM »

Hey,

I have tried the extension datagrid-cellediting.js which is awesome!
But for some weird reason, the onCellEdit event returns undefined in the value.

Here is an example: http://jsfiddle.net/3L4ej4dx/50/
Press on any of the cells in the datagrid and an alert will pop up with the arguments from onCellEdit event,
you will then see that the value is always undefined.

Thanks!
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: July 30, 2015, 07:03:22 AM »

The 'value' parameter indicates the string from the pressed char code on keyboard. If you click on a cell, this value will be ignored.
Logged
A-K
Full Member
***
Posts: 122


View Profile WWW
« Reply #2 on: July 30, 2015, 08:36:08 AM »

Thanks for the reply. seems like I do not fully understand how to use it properly.

Could you provide an example with this event that the value will have an effect?

Thanks!
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #3 on: July 30, 2015, 06:41:41 PM »

Please refer to this updated example http://jsfiddle.net/3L4ej4dx/52/
Logged
A-K
Full Member
***
Posts: 122


View Profile WWW
« Reply #4 on: July 31, 2015, 03:14:26 AM »

Thanks!
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!