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

Read-only Appointment

4 Answers 180 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Meik Schuetz
Top achievements
Rank 1
Meik Schuetz asked on 08 Apr 2011, 06:17 PM
Dear @all,
I'm trying to find a way to define an appointment as "read-only". I don't want the user to be able drag&drop, delete or edit an appointment, nor insert a new appointment. I was examining the FirstLook example, which implements such a functionality using a StyleSelector. I was hoping to find some properties on an Appointment level to define these features. 
Is there any other way to configure these features without the need to create styles for it?

Thanks,
Meik

4 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 11 Apr 2011, 08:34 AM
Hi Meik,

Please, check the following help article and example for more information:
http://www.telerik.com/help/silverlight/radscheduleview-features-speacialslots.html
http://demos.telerik.com/silverlight/#ScheduleView/SpecialSlots

All the best,
Valeri Hristov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Meik Schuetz
Top achievements
Rank 1
answered on 11 Apr 2011, 06:12 PM
Valeri, thank you so much for your help. I tried the solution you pointed out, so far so good. It happens that the edit dialog still appears when double-clicking an appointment. I tried to set the e.Cancel in the AppointmentEditing event to True, but still, I was not able to supress the editing dialog. Is there any other way to hide the appointment editor dialog?

Thanks again,
Best regards,
Meik
0
Meik Schuetz
Top achievements
Rank 1
answered on 11 Apr 2011, 06:16 PM
Please igore my last post, just investigated a bit more the provided samples and I understood it is the ShowDialog event I need to catch.

Thanks again for your help,
Best regards
Meik
0
Oleg
Top achievements
Rank 1
answered on 19 Oct 2011, 10:52 AM
What if I want to set only one, currently selected appointment to readonly? Like this, checking if the current user is the creator of the appointment item:
private void Scheduler_ShowDialog(object sender, Telerik.Windows.Controls.ShowDialogEventArgs e) 
    var appointmentDialog = e.DialogViewModel as AppointmentDialogViewModel; 
    if ((Scheduler.SelectedAppointment as AppointmentWrapper).CreatedBy.UserID != BaseData.CurrentUser.UserID) 
    {    
        if (appointmentDialog != null) 
        
            appointmentDialog.IsReadOnly = true; 
        
    }
}
Tags
ScheduleView
Asked by
Meik Schuetz
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Meik Schuetz
Top achievements
Rank 1
Oleg
Top achievements
Rank 1
Share this question
or