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

Can I hide the Delete button...

2 Answers 63 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Stuart Hemming
Top achievements
Rank 2
Stuart Hemming asked on 23 Jun 2011, 08:50 AM
... 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 Answers, 1 is accepted

Sort by
0
Accepted
Plamen
Telerik team
answered on 24 Jun 2011, 06:12 AM
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.

0
Stuart Hemming
Top achievements
Rank 2
answered on 27 Jun 2011, 09:03 AM
Exactly what I was after, cheers Plamen.

-- 
Stuart
Tags
Scheduler
Asked by
Stuart Hemming
Top achievements
Rank 2
Answers by
Plamen
Telerik team
Stuart Hemming
Top achievements
Rank 2
Share this question
or