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

Can I use the same ToolTipManager for loading different controls?

2 Answers 99 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 20 Jul 2008, 08:47 AM
Can I use the same ToolTipManager for loading different controls?

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 21 Jul 2008, 11:32 AM

Hi Michael,

The RadToolTipManager control is useful in three scenarios:

    1.When the developer wishes to 'tooltipify' all HTML elements on page with title attribute. This is the scenario where the developer already has a page with existing tooltips that need to be easily converted to a nicer look (using a particular skin or animation effect). Dropping a RadToolTipManager on the page, without any additional configuration covers this scenario.
   2.When a list of elements should be tooltipified. In this case the RadToolTipManager TargetControls should be used. This scenario allows for finer tuning, and for using more than one RadToolTipManager - each configured differently (e.g. using different skins, different animations, different sizes).
    3. When one or more elements should display rich dynamic content to be fetched from the server.
      Again the TargetControls collection should be used (as in the above scenario). This approach is useful in cases where content should be fetched from a data source, depending on the element being targeted, and helps keep pages smaller.

Go through the following help articles for more details.
RadToolTipManager Overview
Using the TargetControls Collection

Thanks
Princy.

0
Svetlina Anati
Telerik team
answered on 21 Jul 2008, 12:08 PM
Hello Michel,

Yes, it is possible to load different user controls by using the RadToolTipManager based on some condition.

You can observe this functionality in this online demo - if there are customers, the Customers.ascx is loaded and if there are not - the NoCustomer.ascx is loaded. You can find the full source code of the example, including the WebService and the ascx files on your local disk by using the Start menu:

Start\Programs\Telerik\RadControls for ASPNET AJAX\Open Sample WebSite In VisualStudio

The actual location on your hard disk is the following one:

C:\Program Files\Telerik\RadControls for ASPNET AJAX Q1 2008\Live Demos

I hope that this information is helpful




Regards,
Svetlina
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
ToolTip
Asked by
Michael
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Svetlina Anati
Telerik team
Share this question
or