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

GetAppointments failed

4 Answers 104 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Paulo
Top achievements
Rank 1
Paulo asked on 01 Sep 2011, 10:47 PM

Hello.

I am developing a web application whose pages make use of the RadScheduler component. The interaction with the database relies on a WCF web service, hosted by IIS.

Occasionally, during testing, the following error message is displayed: The server method 'GetAppointments' failed.
Although it rarely happens, I would like to customize the error message in order to display a more user-friendly one.
Is there a way to do it?

Thank you in advance.
Paulo

4 Answers, 1 is accepted

Sort by
0
Veronica
Telerik team
answered on 02 Sep 2011, 12:02 PM
Hi Paulo,

This message comes from the WCF and not from the Telerik control. In order to override the exception message you can take a look at this blog post.

Greetings,
Veronica Milcheva
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Paulo
Top achievements
Rank 1
answered on 02 Sep 2011, 10:22 PM

Hello, Veronica.

Thank you for your reply.

In the Data Provider class, I have decorated the GetAppointments method with the FaultContract attribute and added the try/catch block.
However, on the client side, I don't know which RadScheduler event I should implement to look for the exception.
Could you please clarify that?

Thank you.
Paulo

0
Veronica
Telerik team
answered on 03 Sep 2011, 07:30 AM
Hello Paulo,

I think that OnClientAppointmentPopulating or OnClientAppointmentPopulated events should be the one you are searching for.

Best wishes,
Veronica Milcheva
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Gaurav
Top achievements
Rank 1
answered on 27 Jun 2013, 01:12 PM
Hi Veronica,

I m facing the same problem getting the error Insert Appointment failed.But when i look into the database the data is saved but still the error message comes.This message comes in the chrome browser and sometimes GetAppointement error comes but the appointment is populate.Soy this messges is appering in the chrome browser.In the IE browser the code is working fine.I m using the radscheduler with the WCF.In the firefox GetAppointment method is not calling.If its not calling so no appointment is populating.

So Please help me.

Gaurav Rana
Tags
Scheduler
Asked by
Paulo
Top achievements
Rank 1
Answers by
Veronica
Telerik team
Paulo
Top achievements
Rank 1
Gaurav
Top achievements
Rank 1
Share this question
or