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

Control Access to a Resource

1 Answer 33 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Jacqui
Top achievements
Rank 1
Jacqui asked on 20 Nov 2014, 03:30 AM
I have a RadScheduler that displays multiple resources on a single view (DayView). Is there a way to control the ability to add/edit/delete appointments within a single resource independent of the other resources? I have security that I want to apply and I cannot figure out how to do it. Something like a Readonly at the Resources level or AllowInsert at that level.

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 24 Nov 2014, 12:14 PM
Hello,

As far as I understand you want to execute some custom logic ( or prevent the appointment insert for example) based on the selected resources for a specific appointment. In the code snippet below you can see how to retrieve the appointment resource values. Once you have access to those values you can add an attribute to the appointment for example  or execute some other custom logic or prevent the insert command.
//code behind
protected void RadScheduler1_AppointmentInsert(object sender, AppointmentInsertEventArgs e)
    {
        ResourceCollection resources = e.Appointment.Resources;
        //here goes the logic based on the resource values
    }

If you want to modify the controls within the advanced form before the advanced form is shown to the user you can review the following help article. You are able to do that on the client-side as well as shown here.


Regards,
Boyan Dimitrov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Scheduler
Asked by
Jacqui
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or