Hiding Controls In Ajax Panel Based on Event Handler

2 posts, 0 answers
  1. Armysniper
    Armysniper avatar
    61 posts
    Member since:
    Mar 2005

    Posted 05 Feb 2010 Link to this post

    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?
  2. Martin
    Admin
    Martin avatar
    833 posts

    Posted 10 Feb 2010 Link to this post

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