radscheduleView_ShowDialog new or edit?

2 posts, 0 answers
  1. Elgan
    Elgan avatar
    9 posts
    Member since:
    Nov 2012

    Posted 05 Dec 2012 Link to this post

    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.
  2. Vladi
    Vladi avatar
    743 posts

    Posted 10 Dec 2012 Link to this post

    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">

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

    Hope this helps.

    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft R3 2016 release webinar banner
Back to Top