Changing the Data View
You can change the data view of a C1Schedule at design time using the C1Schedule Tasks menu, the Properties window, in Source view, and in Code. The following example sets the ViewType property to MonthView:
In the Tasks Menu
Complete the following steps:
1. Click the C1Schedule smart tag to open the C1Schedule Tasks menu.
2. Click the drop-down arrow next to the View type item and select one of the built-in data views, for example MonthView.
In the Properties Window
Complete the following steps:
1. Click once on the C1Schedule control to select it.
2. Navigate to the Properties window and locate the ViewType property.
3. Click the drop-down arrow next to the ViewType property and select one of the built-in data views, for example MonthView.
In Source View
Switch to Source view and add ViewType="MonthView" to the <cc1:C1Schedule> tag so that it appears similar to the following:
<cc1:C1Schedule ID="C1Schedule1" runat="server" ViewType="MonthView">
In Code
Add the following code to the Page_Load event to set the schedule's ViewType to MonthView:
C1Schedule1.ViewType = ScheduleViewEnum.MonthViewView
• C#
C1Schedule1.ViewType = ScheduleViewEnum.MonthView;
|