how to blocks drag and drop in the schedule control;

Please tell me a sample that blocks drag and drop content(appointment) in the schedule control;

3 Replies 1 reply marked as answer

AR Arulpriya Ramalingam Syncfusion Team June 11, 2020 12:30 AM UTC

Hi Smart, 
 
Thank you for your interest in Syncufsion products. 
 
In order to restrict item dragging from a date to another date, the ItemChanging event can be handled by using the Cancel event argument. Please make use of the below code and example. 
 
Example code 
 
this.scheduleControl1.ItemChanging += ScheduleControl1_ItemChanging; 
 
private void ScheduleControl1_ItemChanging(object sender, ScheduleAppointmentCancelEventArgs e) 
{ 
    if (e.Action == ItemAction.ItemDrag) 
        e.Cancel = true; 
} 
 
Please let us know, if you have any other queries. 
 
Arulpriya 


Marked as answer

SL Smart law developer June 11, 2020 01:02 PM UTC

Thank you. 감사합니다.


AR Arulpriya Ramalingam Syncfusion Team June 14, 2020 11:35 PM UTC

Hi Smart, 
 
Thank you for the update and we are glad that the provided solution resolved your requirement. 
 
Please get back to us, if you need any further assistance.  
 
Regards, 
Arulpriya 


Loader.
Up arrow icon