Rank: Member Groups: Member
Joined: 2/9/2010 Posts: 21
|
Hello,
I use a html button and ajax to save data in client side. After user modified a cell and click the save button,other data will be saved except the last cell. Because user don't leave the cell, grid.getItem(i).getCell(3).getValue() (i = 0; i < grid.getItemCount(); i++) can't get the modified value.
Do you have any idea? Thanks!
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, I believe in the latest build the Grid automatically saves the data when the page is submitted even if user did not leave the cell. So you may want to update to the latest version first. You can also explicitly exit edit mode by calling the following code:
Code: JavaScript
var grid = eo_GetObject("Grid");
//If FullRowMode is true
grid.editItem(-1, true);
//If FullRowMode is false
grid.editCell(-1, null, true);
Thanks!
|
Rank: Member Groups: Member
Joined: 2/9/2010 Posts: 21
|
Hi, That's work.
Thanks.
|