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

RadAjaxPanel Enable Browser History

3 Answers 87 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Alfredo Buoncompagno
Top achievements
Rank 1
Alfredo Buoncompagno asked on 11 Feb 2014, 06:48 PM
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



3 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 14 Feb 2014, 11:18 AM
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.
0
Alfredo Buoncompagno
Top achievements
Rank 1
answered on 14 Feb 2014, 09:01 PM
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

0
Maria Ilieva
Telerik team
answered on 19 Feb 2014, 12:18 PM
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.
Tags
Ajax
Asked by
Alfredo Buoncompagno
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Alfredo Buoncompagno
Top achievements
Rank 1
Share this question
or