code: function(){
          var me = this,
              last = me.getPageData().pageCount;
  
          if (me.fireEvent('beforechange', me, last) !== false) {
              me.store.loadPage(last);
          }
      }
docs: Move to the last page, has the same effect as clicking the 'last' button.