Hide the Delete button on some appointments

4 posts, 1 answers
  1. Jason Nguyen
    Jason Nguyen avatar
    14 posts
    Member since:
    May 2010

    Posted 09 Mar 2011 Link to this post

    Hello,

    How can I hide the Delete button on some appointments
  2. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 10 Mar 2011 Link to this post

    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!
  3. DevCraft banner
  4. Jason Nguyen
    Jason Nguyen avatar
    14 posts
    Member since:
    May 2010

    Posted 10 Mar 2011 Link to this post

    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.
  5. Answer
    Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 10 Mar 2011 Link to this post

    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!
Back to Top