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

RadToolTipManager Reponse Error

1 Answer 91 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Muhammad
Top achievements
Rank 1
Muhammad asked on 29 Aug 2012, 05:12 PM
Hi,

I am using RadTooltipManager and getting this error. This works perfect when I hover my mouse two times on an image but when I try to hover it on third time it gives me the following error. Any help would be greatly appreciate.

Thanks


RadToolTipManager response error: Exception=Sys.WebForms.PageRequestManagerServerErrorException: Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.



Protected Sub rttm_AjaxUpdate(ByVal sender As Object, ByVal e As ToolTipUpdateEventArgs)
        
       If e.TargetControlID.Contains("imgRotator") Then
           If IsNumeric(e.Value) Then
               
           End If
       End If
        
   End Sub
 
Protected Sub radRotator_ItemDataBound(ByVal sender As Object, ByVal e As RadRotatorEventArgs) Handles radRotator.ItemDataBound
        
       Dim hidLogisticProductKey As HiddenField = e.Item.FindControl("hidLogisticProductKey")
       Dim imgRotator As System.Web.UI.WebControls.Image = e.Item.FindControl("imgRotator")
       Dim nProductKey As Integer = Convert.ToInt32(hidLogisticProductKey.Value)       
       rttm.TargetControls.Add(imgRotator.ClientID, nProductKey, True)
        
   End Sub
 
<telerik:RadToolTipManager ID="rttm" Skin="Windows7" RelativeTo="Element" ShowEvent="OnMouseOver" Width="100" Height="100"
                                   Position="TopRight" OnAjaxUpdate="rttm_AjaxUpdate" ViewStateMode="Disabled" runat="server">
                               </telerik:RadToolTipManager>
                               <asp:Label ID="lblProductDescriptionTooltip" ViewStateMode="Disabled" runat="server"></asp:Label>
                               <telerik:RadRotator ID="radRotator" Width="500" ScrollDirection="Right" RotatorType="AutomaticAdvance"
                                   ScrollDuration="1000" FrameDuration="500" runat="server" Height="100px">
                                   <ItemTemplate>
                                       <div>
                                           <asp:Image ID="imgRotator" runat="server" ImageAlign="Middle" Style="margin: 2px"
                                               ImageUrl='<%# GetImage(Container.DataItem) %>' Height="100px" Width="100px" />
                                           <asp:HiddenField ID="hidLogisticProductKey" Value='<%# Bind("LogisticProductKey") %>'
                                               runat="server" />
                                       </div>
                                   </ItemTemplate>
                               </telerik:RadRotator>

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 30 Aug 2012, 02:40 PM
Hi,

Have you taken a look at this thread and the information it contains: http://www.telerik.com/community/forums/aspnet-ajax/tooltip/radtooltipmanager-server-error-in-ie9.aspx#1968421? I am asking this because this error can be due to an update on the server and not to the tooltip manager.

If the information in the link there does not help I can suggest a few other things:
1) give an ID to the control you load in the tooltip so that its viewstate can be loaded properly

2) try moving the tooltip manager to the end of the page

 3) remove the ViewState for the controls you load in the tooltip. Often loading different controls via AJAX corrupts the viewstate, especially if their control trees are different, which can be your case since I see calls that change the Visible property of some controls. You can also try disabling viewstate for the entire page.

4) move the logic of the user controls to the PreRender event, so that the viewstate is already loaded when you change visibility and values

5) disable event validation for the page and/or user controls via setting validateRequest and enableEventValidation to false in the Page directive

6) try the internet for more options as this is a general AJAX error that can be reproduced without any Telerik controls. For example this google search.


Regards,
Marin Bratanov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
ToolTip
Asked by
Muhammad
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or