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

Bug in RadTooltip when image tooltipped has Alt tag

1 Answer 54 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Mario
Top achievements
Rank 1
Mario asked on 08 Nov 2011, 05:07 PM
Hello,
I create runtime some RadTooltip in order to zoom the selected image. If this image (the target one) has an alt text, in the tooltip I see the alt text instead of the zoommed image. If the target image has no alt text, all works fine. The code I use is this one:

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
 
            Try
                If Not Page.IsPostBack Then
 
                    Dim lController As New ZoomTooltipImmagini.ZoomTooltipImmagini_Controller
                    Dim lParametri As List(Of ZoomTooltipImmagini_Info)
                     lParametri = lController.GetParametri(PortalId, ModuleId)
                     'Estraggo il controlid e lo uso per aggiungere il controllo al tooltipmanager
                    For Each lParametro In lParametri
                        Dim lTooltip As New RadToolTip
                        lTooltip.ID = "RadToolTip_" + lParametro.ControlID
                        lTooltip.TargetControlID = lParametro.ControlID
                        lTooltip.IsClientID = True
                        lTooltip.Width = lParametro.Width
                        lTooltip.Height = lParametro.Height
                        lTooltip.ShowDelay = 100
                        lTooltip.AutoCloseDelay = 10000
                        lTooltip.RelativeTo = ToolTipRelativeDisplay.Element
                        lTooltip.Animation = ToolTipAnimation.None
                        lTooltip.Position = ToolTipPosition.BottomCenter
                        lTooltip.ContentScrolling = ToolTipScrolling.None
                        lTooltip.ShowCallout = True
 
                        Dim lImage As New System.Web.UI.WebControls.Image
                        lImage.ImageUrl = PortalSettings.HomeDirectory + lParametro.PercorsoImmagineEspansa
 
                        lImage.Width = lParametro.Width
                        lImage.Height = lParametro.Height
 
                        lImage.Style.Add("text-align", "center")
                        lImage.Style.Add("vertical-align", "middle")
                        lTooltip.Controls.Add(lImage)
 
                        Me.Controls.Add(lTooltip)
 
                    Next
 
 
                End If
 
            Catch exc As Exception        'Module failed to load
                ProcessModuleLoadException(Me, exc)
            End Try
 
        End Sub

Any Ideas?

Thanks

1 Answer, 1 is accepted

Sort by
0
Mario
Top achievements
Rank 1
answered on 08 Nov 2011, 05:10 PM
Damn, I didn't see the IgnoreAltAttribute property!

Sorry....
Tags
ToolTip
Asked by
Mario
Top achievements
Rank 1
Answers by
Mario
Top achievements
Rank 1
Share this question
or