Can I hide the Delete button...

3 posts, 1 answers
  1. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 23 Jun 2011 Link to this post

    ... on a per appointment basis.

    That is to say, when I'm handling the AppointmentDataBound event, I do some tests to check whether, for that appointment, the user has sufficient rights to edit or delete an appointment and I set up the context menu accordingly. I'd like, when the user has insufficient rights to delete the appointment, to hide the delete button too.

    So far all I've found are suggestions on how to hide it for all appointments.

    Any suggestions?

    -- 
    Stuart
  2. Answer
    Plamen
    Admin
    Plamen avatar
    2734 posts

    Posted 24 Jun 2011 Link to this post

    Hi Stuart,

    You can use the AllowEdit property of appointment to achieve your requirement.

    Here is a sample scenario:

    protected void RadScheduler1_AppointmentDataBound(object sender, SchedulerEventArgs e)
        {
            if (e.Appointment.Subject == "A")
            {
                e.Appointment.AllowDelete = false;
            }
        }

    Hope this helps.

    Regards,
    Plamen Zdravkov
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 27 Jun 2011 Link to this post

    Exactly what I was after, cheers Plamen.

    -- 
    Stuart
Back to Top