Update panel causing error.

2 posts, 0 answers
  1. Henry
    Henry avatar
    44 posts
    Member since:
    Feb 2013

    Posted 07 Aug 2013 Link to this post


    Getting error : Cannot unregister UpdatePanel with ID 'UpdatePanelGrid1' since it was not registered with the ScriptManager error

    What I have is,There is a radwindowmanager with few radwindows and there is a radwindow which has a contenttemplate and it contains an update panel with a grid and a radbutton. And on running the form, this error is frequently coming.

    Please help
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 07 Aug 2013 Link to this post

    Hi Henry,

    The problem is a general one and it can be reproduced with standard asp controls and without any RadControls as well. What actually happens is that when the RadWindow is added to the RadWindowManager it is actually moved in its Controls collection and this happens in the CreateChildControls event of the manager while the update panel registers itself in the Init event which is earlier in the lifecycle. More information about this is available here.

    Since the resolution of the issue is to add the RadWindow in the PreInit event this cannot be fixed in the source code because it is to early to add the RadWindow there and will affect the current functionality. In such setup we can suggest the following two simple solutions which fix the issue and will lead to the desired result:

    1) You can declare a separate RadWindow directly on the page instead of in the RadWindowManager - it will function as expected and there is no limitation or additional load to use the control separately.

    2) You can use RadAjaxManager for ajaxifying.

  3. DevCraft R3 2016 release webinar banner
Back to Top