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:
Any Ideas?
Thanks
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 SubAny Ideas?
Thanks