radajaxmanager and radajaxpanels

5 posts, 0 answers
  1. James
    James avatar
    9 posts
    Member since:
    Jun 2012

    Posted 03 Oct 2013 Link to this post

    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
  2. James
    James avatar
    9 posts
    Member since:
    Jun 2012

    Posted 03 Oct 2013 Link to this post

    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. 
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 08 Oct 2013 Link to this post

    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.
  5. James
    James avatar
    9 posts
    Member since:
    Jun 2012

    Posted 08 Oct 2013 Link to this post

    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
  6. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 10 Oct 2013 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017