The Schedule control allows restricting the CRUD operations (Create, Read, Update, and Delete) on specific appointments based on certain conditions. The following steps shows the way to achieve it by setting specific modification rights for each appointments.
Here, the CRUD operations are prevented on appointments that are created by admin.
Step 2: Define the dragStart, resizeStart, beforeAppointmentCreate, beforeAppointmentRemove and appointmentWindowOpen events of the scheduler as follows,
Step 3: Now, define the following event handler functions to check for, whether the appointment is created by admin or not.
In the above sample, “isAdmin” field has been used to set the modification rights, based on which the CRUD operations are performed on the appointments. For example, if isAdmin field is set to false, only then the appointment operations such as drag and drop, resizing or editing of those appointment will be allowed for the users.
Step 4: Run the sample and perform CRUD operations on the schedule appointments based on isAdmin field value.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|