Dynamically adding content to ToolTipManager

2 posts, 0 answers
  1. judo
    judo avatar
    19 posts
    Member since:
    Apr 2006

    Posted 17 Jun 2010 Link to this post

    I'm not sure where I am going wrong with this, but I just want to dynamically add some text to a literal when the Tooltip is activated.

    My aspx code is :
    <asp:Image ID="helpImg" runat="server"    ImageUrl="~/images/help4.gif" />    
    <telerik:RadToolTipManager ID="RadToolTipManager1" runat="server"  
        OnAjaxUpdate="OnAjaxUpdate"  Width="250" Height="175" HideEvent="ManualClose"  
        ShowEvent="OnClick" Skin="Hay">  
    <TargetControls>   
    <telerik:ToolTipTargetControl  TargetControlID="helpImg"  />    
    </TargetControls>  
    </telerik:RadToolTipManager> 
     

    The code behind is:
        Protected Sub OnAjaxUpdate(ByVal sender As Object, ByVal args As ToolTipUpdateEventArgs) 
            Dim textLit As New Literal 
            textLit.Text = "texteexttext" 
            RadToolTipManager1.TargetControls.Add(textLit.ID) 
        End Sub 

    Not sure where I am going wrong...

    Thx
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 17 Jun 2010 Link to this post

    Hello,

    I hope the following links will be of help in this:
    Managing Content
    Load Content On-Demand


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