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

how can you update a radAjaxPanel from an embedded radAjaxPanel?

1 Answer 99 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 2
Alex asked on 09 May 2013, 09:19 PM
hi,
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?

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 14 May 2013, 01:09 PM
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.
Tags
Ajax
Asked by
Alex
Top achievements
Rank 2
Answers by
Viktor Tachev
Telerik team
Share this question
or