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
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 >>
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
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 >>
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