Regular slots, but read only appointments

5 posts, 0 answers
  1. TEC
    TEC avatar
    9 posts
    Member since:
    Aug 2009

    Posted 14 Jul 2011 Link to this post

    Hi guys,

    I am using the ScheduleView. I am trying to get read only appointments in 'regular' (not ReadOnly) slots. Could you guide me by providing an example, but it should be done in code and NOT in xaml. My case is that I am making a web app where a user has a predefined set of (non dated, not editable) appointments and by selecting a date (or slot) and clicking a button, the selected appointment should be scheduled.

    I have tried the demo where ReadOnly slots are displayed, but ReadOnly slots are not selectable in for example the week view.

    I hoop I am clear enough and awaiting your reply.

    Kind regards
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 15 Jul 2011 Link to this post

    Hello Tec,

    You could cancel AppointmentEditing in order to set certain appointments to be read-only. Additionally, cancelling ShowDialog event will prevent the EditAppointmentDialog from opening.
    Please check this help article for more details about RadScheduleView events.

    Kind regards,
    Yana
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  3. DevCraft banner
  4. TEC
    TEC avatar
    9 posts
    Member since:
    Aug 2009

    Posted 15 Jul 2011 Link to this post

    Hi Yana,

    I had already come so far, but the problem is that the appointments are still editable in the ScheduleView (not via the dialog). When you hover over an appointment, it displays a delete button and resize grips, thus making it editable. How can I disable (never display) the delete button and resize grips in code?

    Kind regards
  5. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 15 Jul 2011 Link to this post

    Hello,

    You are correct, but unfortunately there is no way to accomplish your requirement in the current version of RadScheduleView. We have an internal behavior that is perfect for your scenario, but you will have to wait for it to become public in order to use it, probably until one of the service packs or Q3 2011.

    All the best,
    Valeri Hristov
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  6. Kjell
    Kjell avatar
    275 posts
    Member since:
    Jun 2010

    Posted 18 Nov 2011 Link to this post

    Sorry to bring up this old thread but I was trying to do the same thing and just figured it out.  This thread has the solution:

    http://www.telerik.com/community/forums/silverlight/scheduleview/wanted-to-remove-hide-delete-icon-button.aspx

    The sample only hides the delete button, but right above that is the XAML for the grips so all you have to do is comment that out and you are all set. 
Back to Top
DevCraft banner