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

Event when switch month

5 Answers 18 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Lisa
Top achievements
Rank 1
Lisa asked on 12 Oct 2015, 03:15 PM

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

Sort by
0
Vladimir Iliev
Telerik team
answered on 13 Oct 2015, 10:39 AM
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):

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
Vladimir Iliev
Telerik team
answered on 14 Oct 2015, 11:07 AM
Hello Lisa,

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.
Tags
Scheduler
Asked by
Lisa
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Lisa
Top achievements
Rank 1
Share this question
or