GXT(EXT-GWT) Cannot commit changes to EditorGrid store
I have an EditorGrid. When i edit the grid i use grid.getStore().commitChanges()
, in order to save all the changes to the grid's store.
Then i print out each row of the grid's store. It return's th开发者_JAVA技巧e previous values and not the updated ones.
I searched sensha ext-gwt forum, but couldn't find a solution.
You can have updated done on your Store by adding a StoreListener to the store of your Grid see the javadoc here
grid.getStore().addStoreListener(new StoreListener<BeanModel>(){
@Override
public void storeAdd(StoreEvent<BeanModel> se) {
}
@Override
public void storeRemove(StoreEvent<BeanModel> se) {
}
@Override
public void storeUpdate(StoreEvent<BeanModel> se) {
}
});
精彩评论