ComponentOne Extender Controls for ASP.NET Web Forms
Wijmo Control Toolkit Extender Controls / C1Calendar Extender / Specifying Initial Calendar View
In This Topic
    Specifying Initial Calendar View
    In This Topic

    The default view of C1CalendarExtender is displayed in 'Day' view, that displays days in the month. But if the user wants to set the date in 'yyyy/MM' format, he should be able to view the months in a year. As such, to enable setting the default view or initial view of C1CalendarExtender as per user choice, InitialView property is used. The InitialView property has following available values:

    Setting Initial Calendar view in Design view:

    To set initial calendar view in design view, follow these steps:

    1. Select View | Properties window in the Visual Studio menu.
    2. Click the drop-down list at the top of the Properties window and select Panel1_C1CalendarExtender.
    3. Go to InitialView property and select a value.

    Setting Initial Calendar view in Source view:

    To set initial calendar view in source view, click the source tab and add the following code in your source file:

    <cc1:C1CalendarExtender ID="Panel1_C1CalendarExtender" runat="server" InitialView="Month" DisplayDate="02/29/2016 15:24:54"
    TargetControlID="Panel1">
    </cc1:C1CalendarExtender>

    The following image shows C1Calendar when InitialView property is set to above mentioned values: