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

ToolTip diappear

2 Answers 67 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Wai
Top achievements
Rank 1
Wai asked on 03 Sep 2008, 09:02 PM
Hello,

I try to set RadToolTipManageron the RadGrid.

<telerik:RadToolTipManager ID="RadToolTipManager1" runat="server" Width="300px" Height="180px" Title="Products" Animation="None" ShowEvent="OnClick" AutoTooltipify="false" 
AutoCloseDelay="100000" ShowCallout="false" Text="Loading..."

In code behind, I have
Private Sub rgConfirmationReport_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles rgConfirmationReport.ItemDataBound  
        If TypeOf e.Item Is GridDataItem Then  
 
            Dim lbHistory As HyperLink = CType(e.Item.FindControl("hlHistory"), HyperLink)  
 
            If Not [Object].Equals(lbHistory, Nothing) Then  
                If Not [Object].Equals(Me.RadToolTipManager1, Nothing) Then  
                    RadToolTipManager1.TargetControls.Add(lbHistory.ClientID, True)  
                End If  
            End If  
        End If  
    End Sub 

Private Sub RadToolTipManager1_AjaxUpdate(ByVal sender As Object, ByVal e As Telerik.Web.UI.ToolTipUpdateEventArgs) Handles RadToolTipManager1.AjaxUpdate  
     Dim lblTest As New Label()  
     lblTest.Text = "Test"  
     e.UpdatePanel.ContentTemplateContainer.Controls.Add(lblTest)  
End Sub 

After the tooltip is opened, it is closed immediately.  (I don't see "Test" text.)

Does anyone know if I miss anything?

Thanks,

Wai

2 Answers, 1 is accepted

Sort by
0
Accepted
Obi-Wan Kenobi
Top achievements
Rank 1
answered on 04 Sep 2008, 04:37 PM
Probably RadTooltipManager and RadGrid are in Update panel.
If this is true, when you click over the "link" an AjaxCall, which updates the RadGrid and RadTooltip is happen too.
If you remove the UpdatePanel, everything should be ok.
 
My suggestion is to use Triggers or RadAjaxManager to update the grid as it shown here:
http://demos.telerik.com/ASPNET/Prometheus/Grid/Examples/Programming/WebMailGrid/DefaultCS.aspx

Hope this helps.
0
Wai
Top achievements
Rank 1
answered on 05 Sep 2008, 05:42 PM
It helps.

Thanks a lot.
Tags
ToolTip
Asked by
Wai
Top achievements
Rank 1
Answers by
Obi-Wan Kenobi
Top achievements
Rank 1
Wai
Top achievements
Rank 1
Share this question
or