EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: devnull on May 01, 2015, 09:29:07 PM



Title: Datagrid Cell Edit Error on updateRow [Solved]
Post by: devnull 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/



Title: Re: Datagrid Cell Edit Error on updateRow
Post by: stworthy 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/


Title: Re: Datagrid Cell Edit Error on updateRow
Post by: devnull on May 03, 2015, 05:52:38 AM
Great, that works, thank you.