PDA

View Full Version : (re)load empty grid



luke82
14 Dec 2010, 4:35 AM
Hi,
I have a little problem with empty grid. I have a few lines in a grid. When I delete one or more (using checkbox selection model) and when result is success i show a modal msg.box and referesh a grid. This works OK.
But when i check ALL lines and delete, refresh (reload) on success not working. All data are deleted from DB, and grid still show a data.

For refresh I am using this:


Ext.getCmp('grdCategory').getStore().reload();

THX for reply

luke82
14 Dec 2010, 5:33 AM
SOLVED.

solution:
My false was on server side. When I return from php result without rows for a grid I have to set empty array like this:

{"success":true,"data":[],"total":0}
thats all, and now it works