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

RadWindow - RadAjaxManager1_AjaxRequest problem

1 Answer 26 Views
Window
This is a migrated thread and some comments may be shown as answers.
BSL Support
Top achievements
Rank 1
BSL Support asked on 17 Nov 2011, 06:11 PM
i have two RadWindows, and i am using RadAjaxManager1_AjaxRequest   to update a DIV on OnClientClose event of RadWindow1. This works, but RadWindow2 also triggers this event and causes it to error. can someone help me with this issue. the div is inside an update panel and it still errors. This is the error i get

Error: Sys.InvalidOperationException: Could not find UpdatePanel with ID 'ctl00_MP_CPH1_ctl00_MP_CPH1_dv_PreviewPanel'. If it is being updated dynamically then it must be inside another UpdatePanel.

i attached an image for the code snippets, any help is appreciated. Thank you.

Murali.

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 21 Nov 2011, 09:33 AM
Hello Murali,

This can be due to a double ajaxification of the said div - please make sure your settings do not include it incorrectly twice as nested update panels is an inherently problematic AJAX scenario. Also, does this behavior occur only when used with the RadWindow or also on a click of a simple button, for example. Can you also confirm that there are no other AJAX requests pending at the time, as they would dispose this object and thus the functions may not be able to find it. Also, is this content moved in the DOM via JavaScript?


Greetings,
Marin
the Telerik team
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 their blog feed now
Tags
Window
Asked by
BSL Support
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or