ComponentOne Scheduler for ASP.NET: Scheduler for ASP.NET AJAX Task-Based Help > Using C1Schedule with C1Calendar

Using C1Schedule with C1Calendar

Scheduler for ASP.NET AJAX is compatible with the Calendar for ASP.NET AJAX product. Linking a C1Schedule control to a C1Calendar control is as simple as setting a single property.

Note: While it is compatible with Calendar for ASP.NET AJAX, Scheduler for ASP.NET AJAX is not compatible with the WebCalendar for ASP.NET product.

In the Tasks Menu

Complete the following steps to link a calendar and schedule:

1.   Add a C1Calendar control to your form.

2.   Click the C1Calendar smart tag () to show the C1Calendar Tasks menu.

3.   Click the drop-down arrow next to the Web Schedule item and select C1Schedule1:

 

In the Properties Window

Complete the following steps to link a calendar and schedule:

1.   Add a C1Calendar control to your form.

2.   Click once on the C1Calendar control to select it and navigate to the Properties window.

3.   In the Properties window, select the drop-down arrow next to the C1Calendar.WebSchedule property and select C1Schedule1.

In Code

To link the calendar and schedule programmatically, add the following code into the Page_Load event:

      Visual Basic

C1Calendar1.WebSchedule = "Schedule1"

      C#

C1Calendar1.WebSchedule = "Schedule1";

 What You've Accomplished

Run the project and click one of the dates in the calendar. Notice the date in the schedule changes to match the selected date in the calendar.

For more information on C1Calendar, see the ComponentOne Calendar for ASP.NET AJAX documentation included with the ComponentOne Studios and available on ComponentOne HelpCentral.


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.