検索契約にページネーションとフィルタを追加する必要があります。 私はSearchContractInfoというクラスを持っています。SearchContractInfoは、ページネーションとファイラーをそれぞれ実装するために 'Ext.ux.data.PagingStore'と 'Ext.data.Store'を拡張する必要があります。ExtJSで2つのクラスを拡張するには?
クラスはExtJSで2つのクラスを拡張することはできません。 2つのクラスを拡張する代替ソリューションは何ですか?
問題点「Ext.ux.data.PagingStore」を拡張すると、ページネーションが機能し、フィルタには影響しません。
私が 'Ext.data.Store'を拡張すると、フィルタは機能しますが、ページネーションは機能しません。
一緒に作業するには、ページネーションとフィルタの両方が必要です。
誰かが解決策を思い付くことができたら、大きな助けになるでしょう。
コードスニペット:
Ext.define( 'CLAdmin.store.SearchContractInfo'、{
//extend: 'Ext.ux.data.PagingStore',
extend:'Ext.data.Store',
model: 'CLAdmin.model.administration.SearchContractInfo',
pageSize: 30,
lastOptions: {start: 0, limit: 30, page: 1},
proxy: {
type: 'direct',
directFn: 'contractAction.searchContracts',
reader: {
root: 'records'
},
extraParams: {
searchCriteria: undefined
},
listeners: {
exception: function(me, response, operation, eOpts) {
var msg = "Application unavailable.Please try after some time";
Ext.Msg.show({
title: 'Application',
msg: msg,
buttons: Ext.Msg.OK,
icon: Ext.Msg.ERROR
});
}
}
},
sorters: [
{
property: 'customerNumber',
direction: 'ASC'
},
{
property: 'startDate',
direction: 'DESC'
}
]
})。
おかげで、 Amith