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

Restrict dates on the schduler to a certain value

1 Answer 93 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
FireHolster
Top achievements
Rank 1
FireHolster asked on 25 Sep 2013, 10:22 PM
I am looking for some examples to limit to set the calendar on the scheduler to a certain month.

For example: I want the user to only go back till March, 2013 and not before that.
Also, Is there a way to restrict him to only view and not edit the events?

I am planning to use only the month view

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 26 Sep 2013, 06:31 AM
Hello FireHolster,

You can use the navigation event to prevent navigation before or after given date. For example:

navigate: function(e) {
  if (e.date < new Date("2013/3/1")) {
     e.preventDefault();                  
  }           
}

The editing functionality can be disabled by setting the editable option to false.
Regards,
Rosen
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Scheduler
Asked by
FireHolster
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or