RadScheduleViewCommands.EditAppointment.Execute

3 posts, 0 answers
  1. Joe
    Joe avatar
    31 posts
    Member since:
    Apr 2012

    Posted 04 Oct 2012 Link to this post

    When I use RadScheduleViewCommands.EditAppointment.Execute to open an event that has a recurrence the recurrence dialog is not being presented.



    How can I cause that dialog to be shown?
  2. Joe
    Joe avatar
    31 posts
    Member since:
    Apr 2012

    Posted 04 Oct 2012 Link to this post

    This is what ended up working for me.

    Is this the best way to handle this?



    public void EditAppointmentCommandExecuted(object parameter)

    {

    var scheduler = parameter as RadScheduleView;

    if (!(scheduler.SelectedAppointment is Occurrence))

    {

    var sa = scheduler.SelectedAppointment as CalendarEventAppointment;

    //have to copy to send in "Update" for the operation.

    var ca = new CalendarEventAppointment();

    ca.CopyFrom(sa);

    ca.Operation = "Update";

    RadScheduleViewCommands.EditAppointment.Execute(ca, scheduler);

    }

    else

    {

    //var occ = ca as Occurrence;

    var occ = scheduler.SelectedAppointment as Occurrence;

    scheduler.ShowRecurrenceChoiceDialogWindow(occ, RecurrenceChoiceDialogMode.Opening);

    }

    }

  3. DevCraft banner
  4. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 08 Oct 2012 Link to this post

    Hello Craig,

    I suppose this is fine, as far as I can understand what you are trying to achieve. However, you could also open the EditRecurrenceDialog using the RadScheduleViewCommands.EditRecurrenceRule() command instead.

    Please let us know if you have further questions regarding our controls.

    Kind regards,
    Konstantina
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top