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

"RadRotator items request failed"

2 Answers 88 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
Matthew Tamm
Top achievements
Rank 2
Matthew Tamm asked on 02 Jun 2011, 08:52 AM
Hi there,

We have a RadRotator working/loading via a webservice (using the webservicesettings functionality) and all is working well ....except for the following exception that is thrown when a user clicks off the page with the rotator loading too quickly (as a javascript alert dialog):

RadRotator items request failed :
Exception = The server method 'GetRotatorData' failed.


Occurs in FF, IE, Chrome, and occurs regardless of the debug mode setting in web.config

Is it possible to supress/hide, or better, handle this so that the javascript alert is not thrown up to the user?

(Version is that supplied with Sitefinity 4.1 SP1)

Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Niko
Telerik team
answered on 02 Jun 2011, 03:20 PM
Hello Matthew,

It is possible to suppress the alert that pops up at error. What you need to do is implement a client-side event handler for OnClientItemsRequestFailed and raise the cancelErrorAlert flag:
function suppressErrorAlert(rotator, args)
{
    args.set_cancelErrorAlert(true);
}

Hope this helps.

Regards,
Niko
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
Matthew Tamm
Top achievements
Rank 2
answered on 02 Jun 2011, 11:22 PM
thank you!

(ashamed I didn't see that before posting)
Tags
Rotator
Asked by
Matthew Tamm
Top achievements
Rank 2
Answers by
Niko
Telerik team
Matthew Tamm
Top achievements
Rank 2
Share this question
or