Drag and drop in C1Schedule

Posted by: jose.hernandez on 16 October 2017, 8:15 am EST

  • Posted 16 October 2017, 8:15 am EST


    I want to drop a ListViewItem to an appointment, and manage the drop event. For now, I am able to get the schedule's drop event, but I don't know over which appointment has been droped.
    I have some questions:
    1. How can I know what is the appointment over I drop the ListViewItem object?

    2. If I use a DataTemplate for IntervalAppointmentTemplate, it only works for all-day appointments. If the appointment isn't all day, it uses the default IntervalAppointmentTemplate. How can I use my template and my inherited class when the appointment is not all-day?


  • Marked as Answer

    Replied 17 October 2017, 10:06 am EST


    1. Before you drag a ListViewItem from ListView, the items should be of type Appointment type in order to drop them in the C1Schedule control.
    2. While applying your DataTemplate to IntervalAppointmentTemplate property, you may use Appointment Object and use its AllDayEvent property to check if the appointment is an All-Day event.

    Ruchir Agarwal
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels