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

Appointment editing

3 Answers 63 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Bob
Top achievements
Rank 1
Bob asked on 20 Oct 2010, 10:25 AM
Hi

I am playing with the MVC RadScheduler demo and was wondering how to allow only the user that created the appointment to be able to edit/delete that apointment?

Thanks

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 25 Oct 2010, 10:27 AM
Hi Bob,

You can conditionally set the set_allowDelete() and set_allowEdit() properties  of the SchedulerAppointment object in OnClientAppointmentDataBound.


Kind regards,
Peter
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Bob
Top achievements
Rank 1
answered on 26 Oct 2010, 04:28 PM
Hi

I have something similar

if (User.Identity.IsAuthenticated)
{         
       RadScheduler1.AllowEdit = true;
       RadScheduler1.AllowInsert = true;
       RadScheduler1.AllowDelete = true;
 }

This works well, but there are multiple users that can add and edit, what I would like is that once an appointment is created by user A only user A can edit or delete it. Any thoughts?
James
0
Peter
Telerik team
answered on 26 Oct 2010, 05:07 PM

You can use custom attributes to keep track of who created the appointment by handling
OnClientAppointmentWebServiceInserting.


Kind regards,
Peter
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Scheduler
Asked by
Bob
Top achievements
Rank 1
Answers by
Peter
Telerik team
Bob
Top achievements
Rank 1
Share this question
or