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

What event handles extending the appointment duration by dragging the thumb?

1 Answer 85 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Rod Yager
Top achievements
Rank 1
Rod Yager asked on 07 Mar 2011, 05:37 PM
What event handles extending the appointment duration by dragging the thumb? I need to use the new values to update the database.

I already have code from handling the update from a drag and drop action. So subscribing to the appointment.PropertyChanged is not what I am looking for. I need something more specific for the drag of the start and end of the appointment.

Thanks,
Rod

1 Answer, 1 is accepted

Sort by
0
Accepted
Valeri Hristov
Telerik team
answered on 07 Mar 2011, 06:02 PM
Hi Rod,

There is no event that directly handles the resize operations. I suppose you could use a custom DragDropBehavior instead, though. Subclass Telerik.Windows.Controls.DefaultDragDropBehavior and override Resize(DragDropState):
public override void Resize(DragDropState state)
{
    base.Resize(state);
    var appointment = state.Appointment;
    // Update DB here
}

You could use the same approach for the Drop method that handles the drag-drop operations.

Probably getting reference to the DB access classes would be a problem, so if you need assistance, you will have to share more information about the structure of your classes.

Other option is to use the AppointmentEdited event, which is raised every time an appointment property is changed with the RadScheduleView UI. Note that this event occurs after the changes were applied, so you will not have access to the previous property values.

Regards,
Valeri Hristov
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
ScheduleView
Asked by
Rod Yager
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Share this question
or