View Full Version : View not refreshing
20 Jan 2012, 7:28 PM
I am building a mvc app and in it I have a list (jsonp proxy) that leads to another list (jsonp proxy) when an item is clicked. However the child page is listing the old values, and only after hitting F5 and then clicking on the list item again will it display the correct values.
I have tried calling store.load() in the beforeactivate but that didnít change the outcome.
How do I get the view to display the current data?
23 Jan 2012, 8:37 AM
It listens for the load event or if data is already loaded. You could have a timing issue with using beforeactivate.
23 Jan 2012, 8:52 AM
Thank you for the response.
The use of beforeactivate was the last I tried in order to get it to work.
Every click on the first list will result in a jsonp call and a store rebuild of the child list, so how can I make sure the data is loaded before switching to the childview?
23 Jan 2012, 12:10 PM
Just a quick update to this problem in case others run into it.
The problem was related to timing using localstorage rather than setting the extraParams of the proxy directly.
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.