我有一個網格面板,包含大約10列,並且在我的數據存儲中大約有1000條記錄。由於可見記錄的數量少於數據存儲記錄計數,因此我在網格面板中獲得了一個垂直滾動條。當網格顯示在Internet Explorer 9或Google Chrome中時,當使用我的鼠標滾輪時,垂直滾動條移動得很快。但在Mozilla Firefox中,它的滾動速度非常慢。每個完整的手指拉只允許看到一個額外的記錄/行,或更少。Ext.grid.Panel垂直滾動在Mozilla Firefox中極其緩慢
我該如何解決這個問題?
我使用Mozilla Firefox 14.0.1
下午5點21分更新 ..分頁工具欄沒有顯示出來
var store = new Ext.data.Store({
pageSize: 50,
// allow the grid to interact with the paging scroller by buffering
buffered: true,
// never purge any data, we prefetch all up front
purgePageCount: 0,
model: 'Project',
//proxy: {
// type: 'memory'
//},
proxy: new Ext.ux.AspWebAjaxProxy({
url: '/Controls/ProjectList/ProjectListService.asmx/GetProjectList',
actionMethods: {
create: 'POST',
destroy: 'DELETE',
read: 'POST',
update: 'POST'
},
reader: {
type: 'json',
model: 'Project',
root: 'd'
},
headers: {
'Content-Type': 'application/json; charset=utf-8'
}
}),
autoLoad: true
});
Ext.define('Ext.ux.AspWebAjaxProxy', {
extend: 'Ext.data.proxy.Ajax',
require: 'Ext.data',
buildRequest: function (operation) {
var params = Ext.applyIf(operation.params || {}, this.extraParams || {}),
request;
params = Ext.applyIf(params, this.getParams(params, operation));
if (operation.id && !params.id) {
params.id = operation.id;
}
params = Ext.JSON.encode(params);
request = Ext.create('Ext.data.Request', {
params: params,
action: operation.action,
records: operation.records,
operation: operation,
url: operation.url
});
request.url = this.buildUrl(request);
operation.request = request;
return request;
}
});
我會盡快進行測試。感謝您的輸入!!非常感激。 – MacGyver