Register RadAjaxManager on DotNetNuke(DNN)

Thread is closed for posting
3 posts, 1 answers
  1. 14667CCB-3F32-46E4-8DCA-7C1DF66FF616
    14667CCB-3F32-46E4-8DCA-7C1DF66FF616 avatar
    247 posts
    Member since:
    Jun 2007

    Posted 04 May 2008 Link to this post

    Requirements

    RadControls version

    RadControls 'Prometheus' for ASPNET Q3 2007

    .NET version

    2.0

    Visual Studio version

    2005

    programming language

    C# 2.0

    browser support

    all browsers supported by RadControls


     
  2. PROJECT DESCRIPTION 
        RadAjaxManager will throw exception as two instances occur on the same page. Directly putting it onto a module will lead to this exceptions, since many of module instance can be placed on the same pages.
        In ASP.NET, one may put RadAjaxManager on MasterPage and all pages use RadAjaxManagerProxy to solve this issue. However, under DotNetNuke(DNN) environment, you can't, because DNN doesn't utilize MasterPage mechainism; instead it takes its own mechanism that each page is dynamically generated by the only one page(Default.aspx). It is unwise to instrusively modify Default.aspx even if you can do that.
        This thread provides a mechanism to solve this issue, which is first used by DNN to register ScriptManager (a page can contain just one instance of ScriptManager).

    You can register a RadAjaxManager as follows

        protected void Page_Init(object sender, EventArgs e)

        {

            if (DotNetNuke.Framework.AJAX.IsInstalled())

            {

                DotNetNuke.Framework.AJAX.RegisterScriptManager();

                TelerikAjaxUtility.InstallRadAjaxManager();

            }

        }

    And then get the RadAjaxManager with TelerikAjaxUtility.GetCurrentRadAjaxManager() when needed. Most of time, you can communicate RadAjaxManagerProxy to handle all the work without getting RadAjaxManager. The source code is self-explained. Enjoy!

    Regards,
    Ricky.
       

  • Answer
    3BD6F94B-4C03-46D3-8568-9982F1F201BF
    3BD6F94B-4C03-46D3-8568-9982F1F201BF avatar
    10940 posts
    Member since:
    May 2014

    Posted 27 May 2008 Link to this post

    Hi Ricky,

    Thank you for the provided utility - it will surely be useful for the other members of the Telerik community. I have updated your Telerik points for the involvement.

    Sincerely yours,
    Steve
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  • F3C19D42-E91E-443C-8BCB-7504FC286813
    F3C19D42-E91E-443C-8BCB-7504FC286813 avatar
    68 posts
    Member since:
    Jul 2007

    Posted 17 Aug 2009 Link to this post

    Does anyone know how to use RadAjaxManagerProxy in a module with this DNN code library?
  • Back to Top

    This Code Library is part of the product documentation and subject to the respective product license agreement.