View Full Version : Store Refresh problem

14 Jan 2010, 8:28 AM
hey everyone,

i have a dataview whose store is loaded whenever a user double clicks on a row in the grid,

on double click,


//make ajax call and update values

after which i make an ajax call to update fields in the database and then i load the grid again.but now when i double click the row in the grid the updated values do no refect in the dataview,somehow it keeps using the old values in the store.when i look at the JSON of the store , it contains the updated values but my dataview is somehow still using the old ones.

I have tried using store.removeAll(); statement immediately after store.load(); so that the store gets empty and when the row is dbl clicked the next time a fresh store gets loaded. but still my dataview shows the old values.

only if i refresh the page does it show the updated values.



14 Jan 2010, 11:21 PM
Have you tried the dataview's refresh() method?

15 Jan 2010, 9:56 AM
thanks dude.. no i hadn't done that ))


19 Jan 2010, 12:04 AM
when i try using dataview1.refresh() , firebug shows up with the following error:

el is undefined
on a closer look at the refresh method's code, i see that el is assigned the value of getTemplateTarget() , i am assuming the template type is the tpl ..

any suggestions on future course of action