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

The server method 'GetAppointments' failed

1 Answer 106 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Andrew Kerrison
Top achievements
Rank 1
Andrew Kerrison asked on 18 Jun 2015, 09:58 AM

Hi,

 I have a RadScheduler set up to use web service binding. Everything works okay, except when navigating to another page before the scheduler has finished retrieving the appointments (either clicking away or hitting F5 can do this), an alert will be thrown with the message 'The server method 'GetAppointments' failed' or 'The server method 'GetResources' failed. I don't want to prevent the user navigating away, so I need to be able to handle/suppress this error message. Is there any way to do this?

 You can reproduce the same thing on the demo page at http://demos.telerik.com/aspnet-ajax/scheduler/examples/overview/defaultcs.aspx, hit F5 after the scheduler appears but before the appointments have been populated. I have so far only reproduced this in Firefox. The timing is quite tricky to get it on the demo, but if the scheduler were using a slower data provider it would be easier to replicate.

1 Answer, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 23 Jun 2015, 08:16 AM
Hello,

You can handle the OnClientRequestFailed event of the Scheduler control and call set_cancel(true);​ in it, which will prevent the alert from showing up.

For more information you can refer to our online documentation:
http://docs.telerik.com/devtools/aspnet-ajax/controls/scheduler/client-side-programming/events/onclientrequestfailed

Regards,
Bozhidar
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
Scheduler
Asked by
Andrew Kerrison
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Share this question
or