Drag and drop in C1Schedule

Posted by: jose.hernandez on 15 October 2017, 11:15 pm EST

    • Post Options:
    • Link

    Posted 15 October 2017, 11:15 pm EST

    Hello,

    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?

    Thanks.

    Regards.ListaSeleccionable.zip

  • Posted 17 October 2017, 1:06 am EST

    Hi,

    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.

    Thanks,

    Ruchir Agarwal

Need extra support?

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

Learn More

Forum Channels