EasyUI Forum
May 14, 2024, 11:35:58 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: datagrid cell edit  (Read 5807 times)
korenanzo
Guest
« on: March 25, 2016, 08:36:15 AM »

Hi,
I am using datagrid-celledit;

I need to cancel edit and get the value of the edited field.

I can't conclude the edit with endEdit, 'cause I don't want modify the record

Can I get the value of the in-edit field, before concluding  the edit status?

Thanks,

Rio
Logged
jarry
Administrator
Hero Member
*****
Posts: 2264


View Profile Email
« Reply #1 on: March 25, 2016, 11:34:23 PM »

Get the editor of the special cell and you will be able to retrieve the editing value.
Code:
var dg = $('#dg');
var cell = dg.datagrid('cell');
if (cell){
var ed = dg.datagrid('getEditor', cell);
if (ed){
var value = ed.actions.getValue(ed.target);
console.log(value)
}
}
Logged
korenanzo
Guest
« Reply #2 on: March 29, 2016, 01:17:43 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!