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

Conditional disabling of the edit functionality

2 Answers 303 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
COMM
Top achievements
Rank 1
COMM asked on 28 Apr 2016, 08:36 AM
Hi

I have a scheduler which is set up with views of timelineMonth and timelineWeek. There are three resources, which represent three different locations. All items are full-day only (isAllDay=true).

Many users have access to the scheduler and can place a reservation in a location for a certain number of days. However, I have a business rule which demands that users can only edit and drag-n-drop reservations that they made themselves. They are not allowed to manipulate reservations made by other users.

Each reservation knows its owner through the fields in the schema. There is also a server-side session variable that identifies the owner. So I think I have all the ammunition I need.

How do I a) disable editing in the scheduler and b) disable editing conditionally based on the the user.

2 Answers, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 29 Apr 2016, 09:54 AM
Hello,

I already answered this quesition in the another forum post that you opened (#1030731): 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
COMM
Top achievements
Rank 1
answered on 29 Apr 2016, 01:33 PM
Thanks Vladimir.
The scheduler.restrictions page gave me enough good examples for me to be able to construct the behavior I needed. 
Tags
Scheduler
Asked by
COMM
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
COMM
Top achievements
Rank 1
Share this question
or