Control Access to a Resource

2 posts, 0 answers
  1. Jacqui
    Jacqui avatar
    2 posts
    Member since:
    Aug 2014

    Posted 19 Nov 2014 Link to this post

    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.
  2. Boyan Dimitrov
    Boyan Dimitrov avatar
    2062 posts

    Posted 24 Nov 2014 Link to this post


    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.

    Boyan Dimitrov

    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.

Back to Top