Making the schedule control readonly

How can I make the control readonly? I need to be able to programatically add items to the schedule and display them in the calendar, but I don't want the user to be able to click on a day and add or modify items.


2 Replies

SR Sri Rajan Syncfusion Team February 7, 2008 11:33 PM UTC

Hi Jeff,

Thank you for your interest in Syncfusion products.

To make the Schedule control read-only, you have to prevent the opening of Appointment form. To achieve this, you need to cancel ScheduleAppointmentClick event of the Schedule. Please refer the code below for more details.


private void scheduleControl1_ScheduleAppointmentClick(object sender, ScheduleAppointmentClickEventArgs e)
{
e.Cancel = true;
}


Please let me know if this helps.

Regards,
Srirajan




JL Jeff Lancaster February 8, 2008 01:33 AM UTC

Thank you Srirajan,

That works great.

Jeff


Loader.
Up arrow icon