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

Hiding Controls In Ajax Panel Based on Event Handler

1 Answer 48 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Raventhorn
Top achievements
Rank 2
Raventhorn asked on 05 Feb 2010, 07:22 PM
I have a UserControl that has a RADAjaxPanel with controls in it (call it Purchase). In addition to the controls inside the RADAjaxPanel of Purchase, I also have a separate user control at the top of Purchase that has controls in a RadAjaxPanel (call it Discount). So an instance of Discount is located inside of Purchase. 

Discount fires events that Purchase listens to and then either hides controls or displays them based on what Discount does. I got the events and everything working but the controls in Purchase's event handler do not hide controls or display controls if they are hidden. The code for the event handler fires but nothing happens on the page. How can I trigger the AjaxPanel on Purchase to do something from an event handler in the Purchase control?

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 10 Feb 2010, 07:17 AM
Hello Armysniper,

From your information I noticed that you have one RadAjaxPanel placed inside another RadAjaxPanel. Since this approach is not recommended I would suggest you to use a RadAjaxManager instead of the two ajax panels. The following help article provides some more details:

RadAjax and WebUserControls

Regards,
Martin
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
Tags
Ajax
Asked by
Raventhorn
Top achievements
Rank 2
Answers by
Martin
Telerik team
Share this question
or