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

Tooltip TargetControls

2 Answers 75 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
Fit2Page asked on 07 Jan 2011, 09:21 AM
Hi,

I have a Tooltiptified grid:

http://www.altecparts.nl/shop/search.aspx?zoek=brander

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

http://www.altecparts.nl/shop/search.aspx?zoek=aaa

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

Any suggestions?

Marc

2 Answers, 1 is accepted

Sort by
0
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
answered on 07 Jan 2011, 09:34 AM
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...

Marc
0
Accepted
Svetlina Anati
Telerik team
answered on 12 Jan 2011, 09:49 AM
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,
Svetlina
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.
Tags
ToolTip
Asked by
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
Svetlina Anati
Telerik team
Share this question
or