We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Making the schedule control readonly

Thread ID:

Created:

Updated:

Platform:

Replies:

71629 Feb 7,2008 06:27 PM UTC Feb 8,2008 01:33 AM UTC Windows Forms 2
loading
Tags: ScheduleControl
Jeff Lancaster
Asked On February 7, 2008 06:27 PM UTC

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.


Sri Rajan [Syncfusion]
Replied On 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



Jeff Lancaster
Replied On February 8, 2008 01:33 AM UTC

Thank you Srirajan,

That works great.

Jeff


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;