EasyUI Forum
November 06, 2025, 12:32:21 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: Datagrid Cell Edit Error on updateRow [Solved]  (Read 11406 times)
devnull
Sr. Member
****
Posts: 431


View Profile
« on: May 01, 2015, 09:29:07 PM »

I have a datagrid with cell editing.

There are 2 editable cells, the first is numeric and the second is text.

After entering the numeric value and tabbing or clicking on the text cell, I need to perform some calculations and then update the row, enter notes and then end the edit or continue with the next line.

But the updateRow() ends the edit session so I can't enter in the notes, and it is also throwing an obscure jquery error ( TypeError: $.data(...) is undefined ) which is not really very informative.

I have even tried updateing the row with no new values {} and I still get the same error, it seems that any attempt to update the row from the onChange(0 event results in a error, and I am unable to continue to edit the next field.


http://jsfiddle.net/seKvb/45/

« Last Edit: May 03, 2015, 05:52:57 AM by devnull » Logged

-- Licensed User --
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: May 02, 2015, 05:27:56 AM »

You can not call 'updateRow' method to update a cell's value while editing a row, but you can extend a 'label' editor to simulate this action. Please refer to this updated example http://jsfiddle.net/seKvb/46/
Logged
devnull
Sr. Member
****
Posts: 431


View Profile
« Reply #2 on: May 03, 2015, 05:52:38 AM »

Great, that works, thank you.
Logged

-- Licensed User --
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!