Flemming Rosenbrandt
Top achievements
Rank 1
Flemming Rosenbrandt
asked on 04 Oct 2007, 08:50 AM
Hi
When setting appointments serverside – is it possible to deny the user the possibility to edit/delete/move an appointment?
I have seen that a way might be to cancel the appropriate events – but wouldn’t it be smarter to be able to set some “access/restriction properties” serverside per appointment?
/Flemming Rosenbrandt
5 Answers, 1 is accepted
0
Hi Flemming,
Good idea - it has been requested by other clients as well. Currently we only have the 'ReadOnly' property and disabling separate 'edit features' won't be available in the Service Pack either.
All the best,
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Good idea - it has been requested by other clients as well. Currently we only have the 'ReadOnly' property and disabling separate 'edit features' won't be available in the Service Pack either.
All the best,
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
jeremy
Top achievements
Rank 1
answered on 06 Oct 2007, 01:05 AM
I had a similar issue. I wanted workers to be able to click/book a time slot and have them not able to edit it. They could only either move it to a vacant appointment or delete it (which uses the AppointmentUpdate and AppointmentDelete events.)
If they clicked on the appointment then in the AppointmentClicked event I would basically do a Response.Redirect to a page, perform code logic like can the user book multiple appointments based on my schedule object I created stored in the DB? If not, then add added a small session variable and redirected back to the scheduler page. Then in the scheduler Page_Load event I would check the session variable. Depending on my result I would either display an error label or allow a new appointment.
I don't know if this helps but would be happy to discuss it further.
Thanks,
Jeremy
If they clicked on the appointment then in the AppointmentClicked event I would basically do a Response.Redirect to a page, perform code logic like can the user book multiple appointments based on my schedule object I created stored in the DB? If not, then add added a small session variable and redirected back to the scheduler page. Then in the scheduler Page_Load event I would check the session variable. Depending on my result I would either display an error label or allow a new appointment.
I don't know if this helps but would be happy to discuss it further.
Thanks,
Jeremy
0
Josh Winkler
Top achievements
Rank 1
answered on 06 Feb 2008, 05:07 PM
Has anything been done with this? We also need to remove some of the features from the scheduler system. We are using this tool as a view and also editing tool. If you are an admin you have full access if you are a user you will only be able to view it so if there was a way to turn off all updates as spoken above please let me know. If not is there a work around for this to take away the ability to change any data and only allow user to view the calendar of the scheduler. Please let me know. This is how the client wants it. Thanks in advance.
0
Hello,
You could disable editing for RadScheduler globally for all appointments with the ReadOnly property:
Or, for specific appointments based on a condition:
Greetings,
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
You could disable editing for RadScheduler globally for all appointments with the ReadOnly property:
| protected void Page_Load(object sender, EventArgs e) |
| { |
| if (IsUser) |
| { |
| RadScheduler1.ReadOnly = false; |
| } |
| } |
Or, for specific appointments based on a condition:
| protected void RadScheduler1_AppointmentDataBound(object sender, SchedulerEventArgs e) |
| { |
| if (MyCondition) |
| { |
| e.Appointment.AllowDelete = false; |
| e.Appointment.AllowEdit = false; |
| } |
| } |
Greetings,
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
Josh Winkler
Top achievements
Rank 1
answered on 07 Feb 2008, 01:17 PM
That worked out great. You guys are the best! Thanks for the prompt reply as always. Have a great day!