Hi,
I am trying to alert users when they switch to a different month, if there are dates selected but not saved in the scheduler. The user can click cancel to stay in the current view without losing the date selection, or click confirm to go to a different month. Is it a way to handle it?
Thank you.
5 Answers, 1 is accepted
0
Hello Lisa,
You can try using the "navigate" event in which depending on your custom logic to prevent the current event and focus the widget element again (in case the focus is lost):
Regards,
Vladimir Iliev
Telerik
You can try using the "navigate" event in which depending on your custom logic to prevent the current event and focus the widget element again (in case the focus is lost):
navigate:
function
(e) {
e.preventDefault();
this
.wrapper.focus();
},Regards,
Vladimir Iliev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Lisa
Top achievements
Rank 1
answered on 13 Oct 2015, 02:55 PM
Thanks. Now event is prevented, how to continue to a different month after the use confirms it?
0
Hello Lisa,
You can use the "view" method of the Scheduler:
Regards,
Vladimir Iliev
Telerik
You can use the "view" method of the Scheduler:
Regards,
Vladimir Iliev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Lisa
Top achievements
Rank 1
answered on 14 Oct 2015, 03:51 PM
Hi Vladimir,
Many thanks. Together with the "view" and the "date" methods it works.
scheduler.date(e.date);
scheduler.view(e.view);
Lisa
0
Lisa
Top achievements
Rank 1
answered on 14 Oct 2015, 07:56 PM
Actually just "date" method will do.