私のアプリでは、すべてが動的でなければなりません。私はこのようなビューを作成しています:
this.store = Ext.create('Test.store.Users');
this.model = Ext.ModelManager.getModel(this.store.model);
this.view = Ext.create('Test.view.Users.Index');
this.view.init();
Ext.create ビューはグリッドを作成し、init 関数はページネーション ツールバーを作成します。
init: function(){
var pToolbar = new Ext.PagingToolbar({
dock: 'bottom',
store: this.store,
displayInfo: true
});
this.addDocked([pToolbar]);
}
this.store
正しい参照があり(チェック済み)、リフレッシュはうまく機能していますが、ページネーションはそうではありません! ページネーションではなく、常にすべての結果を取得しています。init() 内で次のようなことを試しました。
//bind a store to a toolbar
pToolbar.bindStore(this.store);
//reconfigure grid
this.reconfigure(this.store);
//load just the first page
this.store.loadPage(1);
同じこと。25 ではなく 240 レコードすべてを取得しています。何かアイデアはありますか?
ありがとうございました。