Prevent Kendo Scheduler events from inconsistent removal

1 Answer 36 Views
Calendar Scheduler
Nick Cephas
Top achievements
Rank 1
Nick Cephas asked on 27 Apr 2022, 12:26 PM | edited on 27 Apr 2022, 12:28 PM

Hi, 

We do have a kendo scheduler bound to a remote data source.

The "transport" configuration of this scheduler's data source is done using remote urls (for CRUD), and this works perfectly,

On the server side, we make a lot of checks. So if some requirements are missing, Create, Update or event Destroy operations wouldn't pass and user will be shown the meaningful error.

The problem we're facing now is like the following :

For the Destroy action, what kind of response should we send back (from the server)  to the scheduler component (in the browser on the client side )  to prevent removal of events in the UI?

We've tried :

  • Sending back HTTP 500 status code
  • Putting an error field in the response and linking it to the schema.error configuration

But events are still removed from the UI, nevertheless the error event is fired. We even use this event to notify errors to end used.

Thank you.

1 Answer, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 02 May 2022, 10:44 AM

Hi Nick,

I am afraid we do not provide a mechanism that would prevent the removing of the task in Scheduler in the described scenario. However, what you could try is to call the dataSource read method after the error is returned from the server. 

- https://docs.telerik.com/kendo-ui/api/javascript/data/datasource/methods/read

Using the read method will send a new request to the 'read' endpoint. Thus, the Scheduler will be populated with all the tasks that are still present in the data.

I hope this helps.

Regards,
Neli
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Calendar Scheduler
Asked by
Nick Cephas
Top achievements
Rank 1
Answers by
Neli
Telerik team
Share this question
or