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

Dynamically adding content to ToolTipManager

1 Answer 80 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
judo
Top achievements
Rank 1
judo asked on 17 Jun 2010, 11:39 AM
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

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 17 Jun 2010, 01:29 PM
Hello,

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


-Shinu.
Tags
ToolTip
Asked by
judo
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or