Tooltip TargetControls

3 posts, 1 answers
  1. Fit2Page
    Fit2Page avatar
    335 posts
    Member since:
    Feb 2007

    Posted 07 Jan 2011 Link to this post


    I have a Tooltiptified grid:

    Tooltips filled on ItemDataBound with
    Me.RadToolTipManager1.TargetControls.Add(target.ClientID, (TryCast(e.Item, GridDataItem)).GetDataKeyValue("ProductCode").ToString(), True)

    But when the Grid has no results like on

    The Tooltips are picked up by the product tree on the left and the RadMenu on top of the page.

    Any suggestions?

  2. Fit2Page
    Fit2Page avatar
    335 posts
    Member since:
    Feb 2007

    Posted 07 Jan 2011 Link to this post

    I created workaround by setting the Tooltip Managers to Visible False:
    Protected Sub SqlDataSource1_Selected(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.SqlDataSourceStatusEventArgs) Handles SqlDataSource1.Selected 
    If e.AffectedRows  = 0 Then
    dtgProducts.Visible = False
    RadToolTipManager1.Visible = False
    RadToolTipManager2.Visible = False
    lbl_Message.Text = "Uw zoekopdracht levert geen resultaat"
    End if
    End Sub
    But I am still curious what causes the problem...

  3. DevCraft R3 2016 release webinar banner
  4. Answer
    Svetlina Anati
    Svetlina Anati avatar
    2795 posts

    Posted 12 Jan 2011 Link to this post

    Hi Fit2Page,

    I examined the provided live urls and I noticed that you are using a very old version of RadControls - 2008.2.826.20. At that time, the AutoTooltipify property of the tooltip manager had default value of true and thus, when the TargetControls collection is empty it tooltipified all the elements on the page which have their title/tooltip set and I assume that this is the reason for the behavior you report. This being said, to resolve the problem you should explicitly set AutoTooltipify="false".

    Best wishes,
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Back to Top