如果我有像這樣的網格上的數據存儲:ExtJS4改變數據存儲參數
store = Ext.create('Ext.data.Store', {
fields: [{
name: 'id'
}, {
name: 'filename'
}
// other fields here ...
],
proxy: {
type: 'ajax',
url: 'http://myniftyurl.com/blah',
simpleSortMode: true,
reader: {
type: 'json',
totalProperty: 'total',
root: 'result'
},
extraParams: {
'limit': Ext.get('itemsPerPage').getValue(),
'to': Ext.get('to_date').getValue()
// other params
}
},
model: 'Page',
remoteFilter: true,
remoteSort: true
});
的「限制」和「到」值將改變基於用戶輸入,其中存在的問題。數據存儲保持使用原始參數而不是新輸入。我怎樣才能解決這個問題?
在此先感謝!
您使用的是MVC模式嗎? (即有沒有一個控制器在這個?) –
嗯,其實沒有 – maximus