ListView datasource loaded twice on browser back button

3 posts, 0 answers
  1. Lukrs
    Lukrs avatar
    39 posts
    Member since:
    Sep 2012

    Posted 24 Oct 2011 Link to this post

    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. Veli
    Admin
    Veli avatar
    2002 posts

    Posted 26 Oct 2011 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jure
    Jure avatar
    18 posts
    Member since:
    Jul 2010

    Posted 28 Oct 2011 Link to this post

    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
Back to Top