RadWindow - RadAjaxManager1_AjaxRequest problem

2 posts, 0 answers
  1. BSL Support
    BSL Support avatar
    16 posts
    Member since:
    Apr 2009

    Posted 17 Nov 2011 Link to this post

    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.

  2. Marin Bratanov
    Marin Bratanov avatar
    5920 posts

    Posted 21 Nov 2011 Link to this post

    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?

    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
Back to Top