- onLoad : function(store, r, o){
- if (! this .rendered){
- this .dsLoaded = [store, r, o];
- return ;
- }
- this .cursor = (o.params && o.params[ this .paramNames.start]) ? o.params[ this .paramNames.start] : 0 ;
- var d = this .getPageData(), ap = d.activePage, ps = d.pages;
- this .afterTextItem.setText(String.format( this .afterPageText, d.pages));
- this .field.value = ap;
- this .first.setDisabled(ap == 1 );
- this .prev.setDisabled(ap == 1 );
- this .next.setDisabled(ap == ps);
- this .last.setDisabled(ap == ps);
- this .refresh.enable();
- this .updateInfo();
- this .fireEvent( 'change' , this , d);
- }
pagingToolBar onLoad的代码
最新推荐文章于 2012-10-26 16:06:37 发布