This is a migrated thread and some comments may be shown as answers.

ListView datasource loaded twice on browser back button

2 Answers 77 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Lukrs
Top achievements
Rank 2
Lukrs asked on 24 Oct 2011, 11:45 AM
Hello,

I have a page with ListView and filters surrounded with RadAjaxPanel (let's say 'Page A'). If any of filters changes, I save the previous state in history (using RadScriptManager AddHistoryPoint). It all works just fine, history is being populated every time I change filter(s) and after clicking browser's back button, ListView loads data with previous filters.
The problem comes up, when I navigate from 'Page A' to any other page in my web project. Then if browser's back button is hitted, ListView loads datasource which has been loaded at the beggining (before any of history points were made) and after approximately 1 second, loads datasource to the one stored in history.
I want, that only datasource from the history is loaded, without the datasource from the start.

Thanks for your reply,
Aleš.

2 Answers, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 26 Oct 2011, 07:54 AM
Hello Lukrs,

Note that this is expected behavior. When you hit the back button in your browser, the entire page needs to loaded first, before the script manager can pick a history point that needs to be restored. This is why you get a full page load first, before an AJAX postback that updates to the required history point. Note that this is standard MS AJAX behavior and is not directly related to RadControls for ASP.NET AJAX.

Veli
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Jure
Top achievements
Rank 1
answered on 28 Oct 2011, 09:02 AM
Hey,

I am also stuck at that problem for quite some time now.

Is there any way to replace the page that is loaded at first with the "new one" that appears when you filter something?

Or is there just no way (workaround) to fix this listview "flickering"?

Sincerely, Jure
Tags
ListView
Asked by
Lukrs
Top achievements
Rank 2
Answers by
Veli
Telerik team
Jure
Top achievements
Rank 1
Share this question
or