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

Hide the Delete button on some appointments

3 Answers 79 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Jason Nguyen
Top achievements
Rank 1
Jason Nguyen asked on 09 Mar 2011, 09:54 PM
Hello,

How can I hide the Delete button on some appointments

3 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 10 Mar 2011, 11:20 AM
Hi Jason,

With the RTM version of RadScheduleView for Silverlight that will be available next week you will be able to specify read-only zones in the control where, appointments cannot be added, removed or edited. I guess you should be easily able to create a read-only zone for each appointment that should not be deleted.

All the best,
Valeri Hristov
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Jason Nguyen
Top achievements
Rank 1
answered on 10 Mar 2011, 03:31 PM
Thanks for the reply Valeri, but can you explain what is meant by a "zone."  Basically, I will have multiple appointments on the same day, but only want some of them to not be "deletable"

I haven't actually started using ScheduleView yet, I am still using RadScheduler but was thinking about switching to the RadScheduleView.
0
Accepted
Valeri Hristov
Telerik team
answered on 10 Mar 2011, 03:50 PM
Hello Jason,

Zone is a time interval plus resources (the corresponding ScheduleView class is called Slot) - you could check our Special Slots example for more information. What I was suggesting is to create a read-only slot for every appointment that should not be deleted. This will make the appointments read-only, though.

If you want to make them only not deletable, but editable, you should cancel the AppointmentDeleting event. The X button chould be removed using a custom AppointmentItem Style that redefines the AppointmentItem ControlTemplate.

Greetings,
Valeri Hristov
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
ScheduleView
Asked by
Jason Nguyen
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Jason Nguyen
Top achievements
Rank 1
Share this question
or