PDA

View Full Version : listpaging caused params lost



brucema
9 Sep 2012, 6:48 AM
store.load({
params: {
lat: this.location.getLatitude(),
lng: this.location.getLongitude(),
gender: Ext.getCmp('selectGender').getValue(),
showDist: 1
},
scope: this
});

list dataview:
Ext.define('Welove.view.nearby.List', {
extend: 'Ext.dataview.List',
alias: 'widget.nearbyList',


config: {
id: 'nearbyList',
emptyText: 'loading...',
store: 'Nearbys',
itemTpl: [
'<div class="userlist"> ',
' <img src="{profile_image_url}"> ',
' <div class="list_text"> ',
' {screen_name}<br>{location} {distance}',
' </div>',
'</div> '
],
plugins: [
{
autoPaging: true,
type: 'listpaging'
},
{
xtype: 'component',
type: 'pullrefresh'
}
]
}


});



the first store load works fine with these params, while the second page after I pull the listpaging, these params are all lost. I remember there aren't such bugs in the previous version of architect 2.