PDA

View Full Version : Problem on Grid having Pagination



Abhishek Pandey
10 Jan 2014, 1:19 AM
Hi ,

I have Grid and one every row i have provided a button , i provide a FormPanel and in that Panel i provide a Back Button on click of that you come back to page that has Grid with the page from where you left.....

I mean to say if we click on a row that exist in Page 2 so after returning back we aill return to Page 2 itself not to Page 1 .......


It works well in FF but breaks in IE every 3rd / 4th time............


This is my Store :

var storeEmplSubscriber = new Ext.data.JsonStore({
url : cp + '/riEASearchSubscriber.json',
root : 'riEASubs',
totalProperty : 'results',
id : 'storeEmplSubscriber',
remoteSort: true,
sorters: [{
property: 'firstName',
direction: 'ASC' // or 'ASC'
},
{
property: 'lastName',
direction: 'ASC' // or 'ASC'
},
{
property: 'Badge',
direction: 'ASC' // or 'ASC'
}],
fields : ['Key', 'Id', 'firstName', 'lastName', 'Badge']
});


Ext.StoreMgr.get("storeEmplSubscriber").load ({
params: {
start : 0 ,
limit: listSize
}
});




And this is my Back Button Functionality :




backToSearch : function() {

var contract = this.getRIEAErrorSearchFixPanel();

var cursr = Ext.getCmp('EmplSearchGrid').getBottomToolbar( ).cursor ;


contract.setActiveCard(0);

storeEmplSubscriber.reload({params: {start: cursr,limit : listSize}});


}





Please help me out on this..................
Any Help would be appreciated...........


Thanks

slemmon
13 Jan 2014, 3:05 PM
I'm having a little trouble following what you've got set up. Can you create a simple test case that demonstrates what you're doing?

*You can save a test case at https://fiddle.sencha.com using your forum login / password to sign in if that helps in sharing a test case.