Postback cause on Mouseout

2 posts, 0 answers
  1. Eugene
    Eugene avatar
    1 posts
    Member since:
    Nov 2007

    Posted 08 Feb 2012 Link to this post

    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
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3595 posts

    Posted 10 Feb 2012 Link to this post

    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 >>
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top