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

Regular slots, but read only appointments

4 Answers 101 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
TEC
Top achievements
Rank 2
TEC asked on 14 Jul 2011, 03:44 PM
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

4 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 15 Jul 2011, 08:54 AM
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!

0
TEC
Top achievements
Rank 2
answered on 15 Jul 2011, 09:08 AM
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
0
Valeri Hristov
Telerik team
answered on 15 Jul 2011, 10:07 AM
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!

0
Kjell
Top achievements
Rank 1
answered on 18 Nov 2011, 11:24 PM
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. 
Tags
ScheduleView
Asked by
TEC
Top achievements
Rank 2
Answers by
Yana
Telerik team
TEC
Top achievements
Rank 2
Valeri Hristov
Telerik team
Kjell
Top achievements
Rank 1
Share this question
or