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

Update panel causing error.

1 Answer 80 Views
Window
This is a migrated thread and some comments may be shown as answers.
Henry
Top achievements
Rank 1
Henry asked on 07 Aug 2013, 08:49 AM
Hi

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
Henry

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 07 Aug 2013, 10:23 AM
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.

Thanks,
Shinu.
Tags
Window
Asked by
Henry
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or