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

which radtooltip to use

1 Answer 51 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 29 Jul 2013, 02:44 PM
So what I need to load is a simple list that pops-up when a use hovers over a label for education i want to show the education temr sfroma database.  Don't wnat to preload into label as that;s wasteful html.  What I would like is a service that hooks to the db and return the list each time someone hovers over the label.  I tried using the radtooltip but could find no way to hook up to a web service, I then found radtooltip manage but I cant find a way to hook this up to the label on the page.

<asp:Label ID="lblKey" runat="server" Text="Key" Font-Size="XX-Small" ForeColor="Blue" Font-Underline="true" style="cursor:pointer"></asp:Label>
                        <telerik:RadToolTipManager ID="radEdlvl" runat="server" Position="MiddleLeft" Animation="Fade" Width="100px" Height="200px" RelativeTo="Element" HideDelay="20" Text="Hello" >
 
 
service, dont know if this will work but cant even see if it works wil the label on page.
 
  <WebMethod()> _
    Public Function GetToolTip() As String
        sql = "Select strEducationCode + ' - ' + strEducation from Education order by strEducationCode"
 
        myDataTable = New DataTable
        myDataTable = getReader(sql)
 
        If myDataTable.Rows.Count > 0 Then
            GetToolTip = myDataTable.ToString
        Else
            GetToolTip = Nothing
        End If
        GetToolTip()
    End Function


1 Answer, 1 is accepted

Sort by
0
Accepted
Danail Vasilev
Telerik team
answered on 01 Aug 2013, 08:32 AM
Hi Kevin,

You can use the RadToolTip, in order to 'tooltipify' a single element and use the RadToolTipManager in scenarios where many elements would require a tooltip. More information on comparison between both controls is available in this help article and ToolTip - RadToolTip versus RadToolTipManager online demo that illustrates both approaches.

You can also find useful the following online demos that treats similar scenario like the mentioned one:

as well as the following help articles:



Regards,
Danail Vasilev
Telerik
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 the blog feed now.
Tags
ToolTip
Asked by
Kevin
Top achievements
Rank 1
Answers by
Danail Vasilev
Telerik team
Share this question
or