Bug in RadTooltip when image tooltipped has Alt tag

2 posts, 0 answers
  1. Mario
    Mario avatar
    26 posts
    Member since:
    Oct 2011

    Posted 08 Nov 2011 Link to this post

    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
  2. Mario
    Mario avatar
    26 posts
    Member since:
    Oct 2011

    Posted 08 Nov 2011 Link to this post

    Damn, I didn't see the IgnoreAltAttribute property!

    Sorry....
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top