开发者

GXT(EXT-GWT) Cannot commit changes to EditorGrid store

开发者 https://www.devze.com 2023-02-24 22:24 出处:网络
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.

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) {

        }

    });
0

精彩评论

暂无评论...
验证码 换一张
取 消