which radtooltip to use

2 posts, 1 answers
  1. Kevin
    Kevin avatar
    265 posts
    Member since:
    Jun 2011

    Posted 29 Jul 2013 Link to this post

    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
                GetToolTip = Nothing
            End If
        End Function

  2. Answer
    Danail Vasilev
    Danail Vasilev avatar
    1476 posts

    Posted 01 Aug 2013 Link to this post

    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:

    Danail Vasilev
    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top