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

Can a ToolTip be applied to a Subject Link?

1 Answer 50 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 07 Jun 2009, 04:14 PM

We have an application which is listing subjects (with an underlying link) in a grid as a search result. (Similar as a search result in a SPS document list). What we want to achieve is this:

When a user moves the mouse pointer over a subject link, a tool tip window should appear which offers a preview of the document content to which the link would lead.

So the follwowing questions arise:
1. Can the Telerik ToolTip be applied on such a link in a list or is it possible only on an icon or image?
2. If we would prepare the relevant text in a database table, can we dynamically control the content  which the tool tip shall display? (Depending on a key which is found in the URL?)
3. In case these features above in 1 and 2 are not available out of the box, is it possible to develop such a feature? If so, do you have a recommendation, who could do this?

Thanks for any hint and answer
Peter

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 11 Jun 2009, 08:39 AM
Hi Peter,

Straight to your questions:

  1. The RadToolTip control can be associated to every control, including links - all you should do is to ensure that the tooltip's TargetControlID is correctly set to the particular element ID.
  2. Yes, you can directly set the needed parameter as a Value to the RadToolTip which will be generated by the RadToolTipManager. After that you can extract it in the loaded user control's code-behind and get the desired data from the database. In order to get a better understanding on this, I suggest to examine the following demos:

    http://demos.telerik.com/aspnet-ajax/tooltip/examples/loadondemand/defaultcs.aspx
    http://demos.telerik.com/aspnet-ajax/tooltip/examples/targetcontrolsandajax/defaultcs.aspx
  3. You can achieve the desired result by using the RadToolTip but this will need some extra code since teh tooltip does not load an external page but directly loads content. One possible spolution is to put an IFRAME element to it by I strongly recommend to consider our RadWindow control instead - I believe that it is the best choice for this scenario because it is exactly a popup control which loads an external page. You can find a sample onlinde demo which uses exactly a parameter from the query string below:

    http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=window
Kind regards,
Svetlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
ToolTip
Asked by
Peter
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or