Disable RadToolTipManager error message

5 posts, 0 answers
  1. reza
    reza avatar
    45 posts
    Member since:
    Apr 2011

    Posted 15 Jun 2011 Link to this post

    Hi
    I have a navigator control that it's nodes (RadLinkButton ) have  load on demand tooltip to display some extra info
    sometimes when I'm working and clicking on navigator nodes ( when the tooltip has not been loaded completely) I get this error :

    RadToolTipManager response error :
    Exception=Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server.
    The status code returnde from the server was:0

    how can I prevent this message to be displayed
    Thanks for your feedbacks
  2. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 15 Jun 2011 Link to this post

    Hello reza,

     We are aware of this problem and we know that it comes from the moving of the update panel which the RadToolTipManager uses for ajax loading of the content in the DOM. This, in combination with the fact that the page is being unloaded while the ajax request is being processed causes the error. However this a very complicated scenario since the interruption of the request and unloading while being processed and thus we will need time to research it and see whether this can be fixed.

    For the time being what I can suggest is to use the RadToolTipManager's OnClientResponseError event as shown below:

    <script type="text/javascript"
        function OnClientResponseError(sender, args) { 
            args.set_cancelErrorAlert(true); 
        
        
    </script>

    Once again, this problem is related to AJAX and there are a lot of resources about this, e.g below:

    http://www.google.bg/search?hl=bg&rlz=1W1WZPA_en&q=sys.webforms.pagerequestmanagerservererrorexception+status+code+was%3A+0&meta=&aq=f&oq=

    and thus we can confirm that we will continue the research but we cannot ensure that there is something else which could be done except for the above suggested solution.

    Regards,
    Svetlina
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. reza
    reza avatar
    45 posts
    Member since:
    Apr 2011

    Posted 18 Jun 2011 Link to this post

    Thank you very much
  5. matthew anderson
    matthew anderson avatar
    1 posts
    Member since:
    Sep 2009

    Posted 22 Jun 2015 in reply to Svetlina Anati Link to this post

    I have done what you suggested but we are still getting this error.

     

        <telerik:RadToolTipManager runat="server" ID="radToolTip" Width="330" Animation="None" OnClientResponseError="OnClientResponseError" ...

     

            function OnClientResponseError(sender, args) {
                args.set_cancelErrorAlert(true);
            }

  6. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3599 posts

    Posted 23 Jun 2015 Link to this post

    Hello Matthew,

    The tooltip manager event can prevent the error that comes from the tooltip manager request only: http://docs.telerik.com/devtools/aspnet-ajax/controls/tooltip/client-side-programming/events/tooltipmanager-specific/onclientresponseerror.

    The error in the console will remain as it is a problem with the AJAX request itself. If you can confirm the issue is not a server exception (see the common issues article), and the alert still shows up, I can suggest adding the following function override that will remove the alert code itself so it could never be shown:

    <script>
        Telerik.Web.UI.RadToolTipManager.prototype._onError = function (message) { }
    </script>

    Make sure to add it after the script manager to ensure it overrides the built-in scripts.

    I can also suggest looking into the PageRequestManager class and its events as this is what manages such exceptions: https://www.asp.net/ajax/documentation/live/ClientReference/Sys.WebForms/PageRequestManagerClass/default.aspx. Here is an example:

    <telerik:RadToolTipManager ID="RadToolTipManager1" runat="server" OnAjaxUpdate="RadToolTipManager1_AjaxUpdate" OnClientResponseError="OnClientResponseError">
        <TargetControls>
            <telerik:ToolTipTargetControl TargetControlID="Button1" />
        </TargetControls>
    </telerik:RadToolTipManager>
    <asp:Button ID="Button1" Text="text" runat="server" />
    <script>
        function endRequestHandler(sender, args) {
            args.set_errorHandled(true);
        }
        var prm = Sys.WebForms.PageRequestManager.getInstance();
        prm.add_endRequest(endRequestHandler);
     
        function OnClientResponseError(sender, args) {
            args.set_cancelErrorAlert(true);
        }
    </script>

    Regards,

    Marin Bratanov
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017