Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

ListGrid and SaveByCell option

$
0
0
SmartGWT 3.1 LGPL

Hi guys,

I have a dialog window with:
a) ListGrid with a local datasource (autoSaveEdits=true, saveByCell=true).
b) "Save" button with a clickHandler.

I edit a value in a cell and click on the "Save" button.
It seems that the click handler is executed before the ListGrid saves the edited record in the datasource.
As a result, when I inspect datasource records - I see the old values.

Is it possible to make the ListGrid to save the edited record in the datasource first?

P.S. I tried to call ListGrid.saveAllEdits() in the ClickHandler - it didn't help.

Viewing all articles
Browse latest Browse all 4756

Trending Articles