ComponentOne Extender Controls for ASP.NET Web Forms
Wijmo Control Toolkit Extender Controls / C1EventsCalendarExtender / Changing the Culture of a Schedule
In This Topic
    Changing the Culture of a Schedule
    In This Topic

    Each culture has different conventions and formats for displaying dates, time, numbers, and other information. This topic illustrates several different ways to set the culture of a C1EventsCalendarExtender using the C1EventsCalendarExtender.Culture property.

    Setting the Culture in Design View

    To set the culture of a C1EventsCalendarExtender control, complete the following steps:

    1.       Right-click the C1EventsCalendarExtender control and then click Show Smart Tag to view the C1EventsCalendar Tasks menu.

    2.       Click the drop-down arrow next to the Culture item.

    3.       Select a culture from the list, for example ja-JP. Your C1EventsCalendarExtender now uses the specified culture format, in this example, Japanese.

    Setting the Culture in Source View

    To set the culture in Source view, add Culture="ja-JP"  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"

            TargetControlID="Panel1" VisibleCalendars="Default,Home,Work" Culture="ja-JP">

        </cc1:C1EventsCalendarExtender>

    Setting the Culture Programmatically

    To set the culture programmatically, add the following code into the Page_Load event:

    Visual Basic
    Copy Code
    Panel1_C1EventsCalendarExtender.Culture = new System.Globalization.CultureInfo("ja-JP")

     

    C#
    Copy Code
    Panel1_C1EventsCalendarExtender.Culture = new System.Globalization.CultureInfo("ja-JP");