Rad tooltip manager, access controls in page

2 posts, 0 answers
  1. Hosam
    Hosam avatar
    2 posts
    Member since:
    Mar 2013

    Posted 11 Apr 2013 Link to this post

    I have a tool tip that has an .ascx form loaded to it; However, I'm looking for a way to let it the .ascx.cs access a control in the main page that the tooltip shows in. Is there a way to do so?
  2. Marin Bratanov
    Marin Bratanov avatar
    4430 posts

    Posted 15 Apr 2013 Link to this post

    Hello Hosam,

    The user control is, at this point a part of the page and can access it just like any other user control. For example, the this.Page property holds a reference to the parent page. You can then use the FindControl() method to get a specific control, or you can have a public property in the page's class that can be accessed by the user control (after casting the Page to the appropriate type) so it can affect its parent page. This is not influenced or related to the RadToolTipManager.

    All the best,
    Marin Bratanov
    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