How to disable the delete event when the login user is not the administrator?

3 posts, 1 answers
  1. Vinix
    Vinix avatar
    33 posts
    Member since:
    Jan 2008

    Posted 02 Mar 2008 Link to this post

    I need to implement a Scheduler which only the administrator users can insert, update and delete the event of the RadScheduler. Please tell me how to disable the delete event. Thank you very much.

  2. Answer
    Piyush Bhatt
    Piyush Bhatt avatar
    166 posts
    Member since:
    Nov 2007

    Posted 02 Mar 2008 Link to this post


    You can handle AppointmentCreated event and in that, check whether current user is Administrator or not (you may want to store this in session). And change following flag accordingly:

    void RadScheduler1_AppointmentCreated(object sender, AppointmentCreatedEventArgs e)
    {
        if (Session("IsAdministrator")  == true)
            e.Appointment.AllowDelete = true;
        else
            e.Appointment.AllowDelete = false;
    }

    I am not from Telerik, but I hope they may have the same solution.
    -Piyush
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Vinix
    Vinix avatar
    33 posts
    Member since:
    Jan 2008

    Posted 02 Mar 2008 Link to this post

    Many Thanks for your replying.
    It is very helpful.
Back to Top