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

radscheduleView_ShowDialog new or edit?

1 Answer 44 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Elgan
Top achievements
Rank 1
Elgan asked on 05 Dec 2012, 01:16 PM
HOw can I go about checking if the clicked slot was for a new appointment or for an edit?

I want to be able to only edit slots. Not create any new ones.

1 Answer, 1 is accepted

Sort by
0
Vladi
Telerik team
answered on 10 Dec 2012, 07:14 AM
Hello Elgan,

You can use the AppointmentCreating event and cancel it by setting the Cancel property of the event arguments to true.

The following code shows how to cancel the AppointmentCreating event:

in the xaml:
<telerik:RadScheduleView AppointmentCreating="scheduleView_AppointmentCreating_1">
    ...
</telerik:RadScheduleView>

and in the code behind:
private void scheduleView_AppointmentCreating_1(object sender, Telerik.Windows.Controls.AppointmentCreatingEventArgs e)
{
    e.Cancel = true;
}

Hope this helps.

Greetings,
Vladi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
ScheduleView
Asked by
Elgan
Top achievements
Rank 1
Answers by
Vladi
Telerik team
Share this question
or