Hello everyone,
I'm working on a application that loads a big store (7000 records). What I want do is show 50 and then let it load the next 50 (as the paging plugin does). Although I can't seem to get it to work. I can load my store, but its always looping the same 50 records. Right now the api is set like this:
Code:
url: 'http://admin.hishanghai.info/sencha/placesearch.php?action=read&callback=callback&q=e&page1',
To get the next page it is:
Code:
url: 'http://admin.hishanghai.info/sencha/placesearch.php?action=read&callback=callback&q=e&page2',
I don't know if it's possible to this and how. Right now I'm using the plugin like this:
Code:
plugins: [
{
xclass: 'Ext.plugin.ListPaging',
autoPaging: true
}
],
Any help will be greatly appreciated!
Code:
Ext.define('android.store.Searchstore', {
extend: 'Ext.data.Store',
requires: ['android.model.Searchmodel', 'Ext.data.proxy.JsonP'],
config: {
model: 'android.model.Searchmodel',
pageSize: 5,
sorters: [{ property : 'name', direction: 'DESC' }],
autoLoad: true,
proxy: {
type: 'scripttag',
url: 'http://admin.hishanghai.info/sencha/placesearch.php?action=read&callback=callback&q=e',
reader: {
type: 'json',
rootProperty: 'place'
},
extraParams: {
action: 'read'
}
}
}
})