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
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:
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.
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);
}
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 BratanovTelerik