Hi,

how can I trigger store commit with REST functionality?

PHP Code:
Ext.Msg.confirm(
            
'Delete record',
            
'Do you really want to delete selected record?',
            function(
btntext){
                if (
btn == 'yes') {
                    var 
sm this.getView().getSelectionModel();
                    
this.store.remove(sm.getSelection());
                    
this.store.sync(); // Here should be something that would do actual commit.???
                    
if (this.store.getCount() > 0) {
                        
sm.select(0);
                    }
                }
            },
            
this
        
); 

And how do you reload the store with the fresh data?