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