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

Having a RadAjaxPanel cause a Postback on Another RadAjaxPanel?

3 Answers 109 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Alex Jones
Top achievements
Rank 1
Alex Jones asked on 14 Oct 2009, 02:18 PM
The issue is I have many RadAjaxPanels of which each can have many controls which cause a postback.  Some of the data in different RadAjaxPanels is dependent on changes that may be made in other RadAjaxPanels.  Therefore I need the dependent panels to postback and update whenever the "Master" panels update.  Currently I am using the RadAjaxManager to dynamicly set the dependencies.  This would be much simpler if I could Simply have one RadAjaxPanel cause a Postback in another RadAjaxPanel. This way I would not have to set each of the 10 or so controls in each of my panels or update the other panels.

3 Answers, 1 is accepted

Sort by
0
Accepted
Mira
Telerik team
answered on 19 Oct 2009, 02:24 PM
Hello Alex,

I recommend that you take a look at this help topic showing how to achieve interaction between AJAX Panels.
However, please note that RadAjaxPanel control is designed to update only its content controls so it is always recommended using RadAjaxManager when an update to external controls is necessary.

Regards,
Mira
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Alex Jones
Top achievements
Rank 1
answered on 19 Oct 2009, 04:20 PM
I think my question may have been poorly worded.

I have 2 panels A and B
Panel A has 10 Buttons with need to update both Panel A and B.
Can I set the RadAjaxManager to Update B when A is updated? or Do I need to set all 10 controls individually. 

The issue is that I do not re-render all the controls of Panel A if I Postback for Panel C, therefore the RadAjaxManager do not persist with my settings for the controls of Panel A.  The only thing that is rendered every time is the Control which opens panel A, B, and C.

0
Alex Jones
Top achievements
Rank 1
answered on 19 Oct 2009, 04:32 PM
So, I decided to use JS and a Dictionary system to access the ClientID's of my dependent panel.  Using "$find('{0}').ajaxRequest();" I will set each control individually to cause the postback.
Tags
Ajax
Asked by
Alex Jones
Top achievements
Rank 1
Answers by
Mira
Telerik team
Alex Jones
Top achievements
Rank 1
Share this question
or