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

kendo scheduler datasource add event not close event

1 Answer 115 Views
This is a migrated thread and some comments may be shown as answers.
Luis Ismael
Top achievements
Rank 1
Luis Ismael asked on 09 Sep 2019, 06:02 AM

I am using SignalR, to add items to a sheduler datasource. 
when adding an appointment if someone is also on an appointment, close the window event, 
there is a way to update the agenda without closing the window event

1 Answer, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 10 Sep 2019, 02:31 PM

Hello Luis Ismael,

When the Scheduler is notified that changes have been introduced by another client, it gets automatically rebound to its DataSource in order to display immediately all the changes. The SignalR DataSource forces this rebind and in consequence it automatically closes the edit pop-up.

Consider implementing an event handler for the dataBinding event. It will be fired when the Scheduler is just about to be bound / rebound. In this handler you can prevent the actual data binding for the cases, in which there is a pop-up open on the screen and the action is not a sync action (the one that sends data from Scheduler and not the other way around):

onDataBinding: function (ev) {
  if ($('.k-scheduler-edit-form').length > 0 && ev.action !== 'sync') {
    ev.preventDefault();
  }
},

Regards,
Ivan Danchev
Progress 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
Asked by
Luis Ismael
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Share this question
or