Thursday, October 9, 2014

ExtJs - How to override refresh button in grid's paging toolbar

Refresh button in paging toolbar can be overridden to write you own logic


{
    xtype: 'pagingtoolbar',
    doRefresh: function(){
        if(arguments.length>0){
            //callfromclickingonrefreshbutton
        }else{
            //whenyoucalldoRefreshexplicitytorefreshthelistExt.toolbar.Paging.prototype.doRefresh.apply(this,
            arguments);
        }
    }
}

No comments: