PDA

View Full Version : First record not getting removed from a grid on reload



sachin sachdeva
28 Dec 2010, 6:05 AM
Hello sir
Here is the server side code that i am using to refresh a grid which works fine until we have a the last record in my grid.All my documents sucessfully removed on grid refresh .but when i try to remove the last document i need to refresh the whole page.So i tried to refresh the whole parent page (SHOWN IN DOTTED LINE)in this process document is removed but my pagination bar disappears so can you please tell me is there any event in extjs which can be activated on realod a grid.



else if (assetGrid == "myassets") {

if (parent != null) {
if (parent.grid != null&& parent.grid.getStore() != null) {
parent.grid.getStore().reload();
// parent.window.location= 'myfileStatus.jsp';..................................................................
}
if (parent.chkinpopwin != null) {
parent.chkinpopwin.close();
}
}
}
},

Condor
28 Dec 2010, 6:28 AM
Can you explain better?

I don't see why you would want to reload the store AND change the location.

29 Dec 2010, 10:59 AM
is your back-end returning an empty array?