Hi Ryan,
Thanks for using Syncfusion
product.
Your requirement can be achieved by
using DragAndDropCommand of
ScheduleCommands, which is used for enabling the Resize Operation. And this
command also used to drag and drop the selected appointments from one timeslot
to another timeslot.
For your reference we have prepared
the sample for ContextMenu Customization
with Resize Option. Please find the sample from attachment.
Note: In attached sample we have handled the DragAndDropCommand in resizeButton_Click event to perform the Resize
operation.
Please let us know if you need any further
assistance.
Regards,
Jeyasri M
Hi Ryan,
Please let us know if you require any other assistance on this.
Regards,
Saranya
private void Schedule_AppointmentEditorOpening(object sender, AppointmentEditorOpeningEventArgs e)
{
if(isAppointmentDrggedOrResized)
{
e.Cancel = true;
isAppointmentDrggedOrResized = false;
}
}
private void Schedule_AppointmentEndResizing(object sender, AppointmentEndResizingEventArgs e)
{
isAppointmentDrggedOrResized = true;
ScheduleCommands.EditCommand.Execute(this.schedule);
}
private void Schedule_AppointmentEndDragging(object sender, AppointmentEndDraggingEventArgs e)
{
isAppointmentDrggedOrResized = true;
ScheduleCommands.EditCommand.Execute(this.schedule);
} |