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

Rad tooltip manager, access controls in page

1 Answer 40 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Hosam
Top achievements
Rank 1
Hosam asked on 11 Apr 2013, 09:30 PM
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?

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 15 Apr 2013, 11:25 AM
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.
Tags
ToolTip
Asked by
Hosam
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or