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

Postback cause on Mouseout

1 Answer 76 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Eugene
Top achievements
Rank 1
Eugene asked on 09 Feb 2012, 12:41 AM
I followed the example in your demo, but for some reason whenever my mouse moves off the detail label it causes an entire page refresh. Has anyone had this happen or now of a quick setting to prevent this? 

The application has multiple tabs and when the issue happens, the user has clicked into the second tab so the page itself is already in postback state.

Tooltip Manager source:
<telerik:RadToolTipManager runat="server" AnimationDuration="300" ShowDelay="200"
EnableShadow="true" HideDelay="0" ID="RadToolTipManager1" Width="463px" Height="220px"
RelativeTo="Element" Animation="Slide" Position="BottomCenter" OnAjaxUpdate="OnAjaxUpdate"
Skin="Telerik" />

Code behind:
   
Protected Sub rpExercise_ItemDataBound(sender As Object, e As System.Web.UI.WebControls.RepeaterItemEventArgs) Handles rpExercise.ItemDataBound
    Dim lnkBtn As Label = e.Item.FindControl("lblDetails")
    Dim currentRow As System.Data.DataRowView = DirectCast(e.Item.DataItem, System.Data.DataRowView)
    Me.RadToolTipManager1.TargetControls.Add(lnkBtn.ClientID, currentRow.Row("id").ToString(), True)
End Sub
Protected Sub OnAjaxUpdate(sender As Object, args As ToolTipUpdateEventArgs)
    Me.UpdateToolTip(args.Value, args.UpdatePanel)
End Sub
Private Sub UpdateToolTip(elementID As String, panel As UpdatePanel)
    Dim lbl As New Label
    lbl.Text = "Hi there"
    panel.ContentTemplateContainer.Controls.Add(lbl)
End Sub

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 10 Feb 2012, 05:04 PM
Hi Eugene,

This is some strange behavior. Can you confirm you do not have a JavaScript error on your page or that you do not have some custom event handler that triggers this postback - either for an event of the target control, or for the RadToolTipManager? Does this behavior occur only when mousing out of the target control, or only when clicking on another tab (I assume you are using the RadTabStrip for this)? What are your AJAX settings? If the tab click performs an AJAX request can you confirm there isn't any code attached there? What I can advise at this point is that you start removing functionality from this page until the issue disappears so that we can narrow down its origin. Once you have hunted it down please post the relevant code if you are still unable to resolve it.


All the best,
Marin
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
ToolTip
Asked by
Eugene
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or