Welcome Guest Search | Active Topics | Sign In | Register

how to set cell focus to another cell Options
Arthur
Posted: Wednesday, March 10, 2010 5:42:28 AM
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!
eo_support
Posted: Wednesday, March 10, 2010 8:49:54 AM
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!
Arthur
Posted: Thursday, March 11, 2010 10:35:21 PM
Rank: Member
Groups: Member

Joined: 2/9/2010
Posts: 21
Hi,
That's work.

Thanks.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.