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

radajaxmanager and radajaxpanels

4 Answers 80 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 03 Oct 2013, 03:38 PM
I have a question that I am sure has been asked. 

I inherited am asp.net web application using manu of the Telerik controls.  We use a master page and I just noticed (after nearly 3 years) that there were radajaxpanels embedded in the master page.  All of our pages/controls use the RadAjaxManager (which is also defined on the master page) along with the RadAjaxManagerProxy on all pages.

I have removed the two radajaxpanels and I don't see any adverse impact on the application.  Is there anything I should be looking for because I removed the Panels?  Also, will it make a difference in performance?  It seemed like the proxy was working since we use a radajaxloading panel and it seems to show up on the appropriate controls when I specify them in the proxy.  I am wondering if it was really posting back the whole page even though it looked like it was the area I defined in the proxy.

Thanks.

Jim Van Dick

4 Answers, 1 is accepted

Sort by
0
James
Top achievements
Rank 1
answered on 03 Oct 2013, 06:17 PM
Well, navigating through the application, I am seeing a bunch of javascript errors because I removed the radajaxpanel.  Any suggestions on how to do this properly is much appreciated. 
0
Maria Ilieva
Telerik team
answered on 08 Oct 2013, 08:28 AM
Hi James,

Note that using both RadAjaxManager and RadAjaxPanel for updating the same part of the page is not a supported scenarios as this may lead to rendering of nested UpdatePanels on the page. There are a lot of issues that may appear when using both the manager and the panel in some complex applications - MasterPage or WebUserControls. However, note that a single RadAjaxManager (and no panels) and in the master/main page and RadAjaxManagerProxy control could handle all the scenarios.
The RadAjaxPanel functionality can be simulated completely by the manager - simply replace the RadAjaxPanel with an ASP:Panel. and add those asp Panel controls to update itself in the RadAjaxManager settings.
In case you are referring the RadAjaxPanel into some client code you should revise your logic and in case manual ajaxRequest should be invoked you could use the RadAjaxManager for the same purpose.

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 RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
James
Top achievements
Rank 1
answered on 08 Oct 2013, 12:35 PM
Hi Maria.

Thank you for your reply.  One question I do have is this:

The original code had radajaxpanels in the master page where the main content would go.  All the pages and controls used the radajaxmanager.  Since the radajaxpanel was being used for the main content, woudl that mean it takes precedence and the whole page was posting back? 

In other words will I gain performance enhancements since I removed the radajaxpanels from the master page and now the radajaxmanager is actually managing the post backs?

Thanks again.

Jim Van Dick
0
Maria Ilieva
Telerik team
answered on 10 Oct 2013, 12:26 PM
Hello James,

If all the separate nested controls are ajaxified with RadAjaxManager and there is no control ont he main page that was ajaxified independently by the RadAjaxPanel, the re-movement of the RadAjaxPanel control will not affect the site performance or functionality in any way.
However if there is controls on the main page that have been updated by the RadAjaxPanel and currently are not included in ajax settings, best approach would be to place RadAjaxManager on the main page to handle this updates and use RadAjaxManagerProxy controls in all other nested pages.

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 RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Ajax
Asked by
James
Top achievements
Rank 1
Answers by
James
Top achievements
Rank 1
Maria Ilieva
Telerik team
Share this question
or