how can you update a radAjaxPanel from an embedded radAjaxPanel?

2 posts, 0 answers
  1. Alex
    Alex avatar
    16 posts
    Member since:
    Nov 2012

    Posted 09 May 2013 Link to this post

    my page has a radAjaxPanel (outer) on it. inside of this is a radGrid. the radGrid's editForm is a user control, and inside of this user control is another radAjaxPanel (inner).
    there is a button inside of the user control's ajaxPanel that gets enabled/disabled server-side depending on selections made in other controls in the ajaxPanel. that works fine.

    my problem is that i would like the button to update the outer ajaxPanel. i do not want to do a full page postback.

    how can this be done?
  2. Viktor Tachev
    Viktor Tachev avatar
    2300 posts

    Posted 14 May 2013 Link to this post

    Hi Alex,

    It is recommended to avoid nesting of RadAjaxPanel controls. In the scenario you describe the ajax request is handled by the outer RadAjaxPanel because the request from the inner RadAjaxPanel is canceled. Try closing the edit form and see what would happen. Also composite controls such as RadGrid need to be updated as a whole. If you would like to achieve partial ajaxification it is illustrated in this online demo. Please take a look at this article. The guidelines in it are generally the same when it comes to nesting RadAjaxPanel controls.

    When handling more complex scenarios it is recommended you use RadAjaxManager control. It provides functionality for handling all scenarios where the RadAjaxPanel control has some limitations. You would find this article useful regarding RadAjaxManager and WebUserControls.

    I hope this is helpful to you.

    All the best,
    Victor Tachev
    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