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

Disable RadToolTipManager error message

4 Answers 107 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
reza
Top achievements
Rank 1
reza asked on 15 Jun 2011, 03:41 PM
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

4 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 15 Jun 2011, 04:45 PM
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.

0
reza
Top achievements
Rank 1
answered on 18 Jun 2011, 01:57 PM
Thank you very much
0
matthew anderson
Top achievements
Rank 1
answered on 22 Jun 2015, 05:48 PM

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);
        }

0
Marin Bratanov
Telerik team
answered on 23 Jun 2015, 08:10 AM

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
Tags
General Discussions
Asked by
reza
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
reza
Top achievements
Rank 1
matthew anderson
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or