You can change the data view of an events calendar at design time using the Properties window, in Source view, and in Code. You can change the view using the C1EventsCalendarExtender.ViewType property.
Changing the Calendar View in Design View
To change the calendar view in Design view, complete the following steps:
Changing the Calendar View in Source View
To change the calendar view to Month, for example, in Source view, add ViewType="Month" to the <cc1:C1EventsCalendarExtender> tag. Once you've set this property, your markup will resemble the following::
<cc1:C1EventsCalendarExtender ID="Panel1_C1EventsCalendarExtender"
runat="server" Colors="red,darkorchid,green,blue,cornflowerblue,yellow,bronze"
SelectedDate="2012-02-09" TargetControlID="Panel1"
VisibleCalendars="Default,Home,Work" ViewType="Month">
</cc1:C1EventsCalendarExtender>
Changing the Calendar View in Code
Add the following code to the Page_Load event to set the calendar's C1EventsCalendarExtender.ViewType to Month:
Visual Basic |
Copy Code
|
---|---|
Panel1_C1EventsCalendar1.ViewType = C1.Web.Wijmo.Extenders.C1EventsCalendar.C1EventsCalendarViewType.Month |
C# |
Copy Code
|
---|---|
Panel1_C1EventsCalendar1.ViewType = C1.Web.Wijmo.Extenders.C1EventsCalendar.C1EventsCalendarViewType.Month; |