RadAjaxPanel Enable Browser History

4 posts, 0 answers
  1. Alfredo Buoncompagno
    Alfredo Buoncompagno avatar
    4 posts
    Member since:
    Jul 2009

    Posted 11 Feb 2014 Link to this post

    Hi,

    In the index.aspx of my web application i'm using a RadAjaxPanel do paginate a repeater . On top of the page is a list from A to Z where the user can navigate throught the letters for a faster pagination.

    What i need is to enable the browser history for this pagination.

    I have enabled the "EnableHistory=true" on the RadAjaxPanel and add some history point on the server side.
    The browser history now shows every pagination, what is perfect.

    But the problem is that when hit the back button on the browser, the event OnNavigateHistory is never called.

    The question is : Is that possible to use RadAjaxPanel on this scenario ? How can I do it ?

    Thanks,

    Alfredo



  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 14 Feb 2014 Link to this post

    Hello Alfredo,

    Note that the proper approach for handling the Browser History feature with Ajax is to use the Script Manger mechanism described below:

    http://www.telerik.com/help/aspnet-ajax/ajax-back-forward-btns.html

    I hope this helps.


    Regards,
    Maria Ilieva
    Telerik
    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 UI for ASP.NET AJAX, subscribe to the blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Alfredo Buoncompagno
    Alfredo Buoncompagno avatar
    4 posts
    Member since:
    Jul 2009

    Posted 14 Feb 2014 in reply to Maria Ilieva Link to this post

    Hello Maria,

    Thanks for your reply.

    In other part of my application I've implemented the historypoint using the RadAjaxManagerProxy, the OnNavigateHistory event attached to the script manager, and the  ScriptManager.GetCurrent(this).AddHistoryPoint  to add the history points.

    And in my page load, i included the code above:

    ramProxy.AjaxSettings.AddAjaxSetting(ScriptManager.GetCurrent(this), rptNoticias, rapPanel);
    This line forces any action of the acriptmanager to update my repeater.

    My question is , can i use the same solution with RadAjaxPanel instead of RadAjaxManager ?

    I'm using the AjaxPanel in my index because there are to manny controls to update, using the ajax manager.

    Thank's

    Alfredo

  5. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 19 Feb 2014 Link to this post

    Hi Alfredo,

    Unfortunately using RadAjaxLoadingPanel could not be applied in this case as in case to have the RadScriptManager updates the corresponding control you should have these two controls added in the RadAjaxPanel. However adding RadScriptManager in the RadAjaxPanel is not a supported scenario due to the script referencing mechanism.
    Currently possible approach for minimizing the RadAjaxManager settings is to wrap some groups of controls into single wrappers and add these wrappers in the RadAjaxManager.

    Regards,
    Maria Ilieva
    Telerik
    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 UI for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top