问题
I'm trying to load a combobox with remote data from a SQL database, Here is the Combobox Code,
{
xtype: 'fieldset',
title: 'Busname',
items: [
{
xtype: 'myCombobox',
name: 'busname',
forceNewStore: true,
pageSize:10,
queryMode: 'local',
displayField: "description",
valueField: "description",
mapperId: 'busnamefetch',
maskRe: /[A-Za-z0-9]/,
forceSelection: true,
emptyText: 'Select Bus',
margin: '15px',
triggers: {
clear: {
cls: 'x-form-clear-trigger',
handler: function () {
this.reset();
}
}
},
}]
}
I'm mapping this in a seperate mapper file as below,
{
key: "busnamefetch",
type: "dServ",
properties: [
{
"key": "namespace",
"value": "Travelmapper"
},
{
"key": "query",
"value": "selectbusname"
}]
}
and here,
{
id: 'selectbusname',
namespace: 'Travelmapper',
statementType: 'CALLABLE',
query: 'SELECT busname as description FROM BusTable order by busname limit 10;'
}
now When I try to do a paging in the combobox,The paging tool bar appears and says the showing 1 of... so and so, but the next page thing doesn't work, what i am Missing please help me here,I have gone through many examples, Couldn't get it.
来源:https://stackoverflow.com/questions/42759544/pagination-with-remote-data-for-the-combobox