Changing the Culture

By default, the culture of the C1Calendar control is set to English (United States). In this topic, you will set the culture to Russian (Russia) in Design view, in Source view, and in code. This topic assumes that you have created an AJAX-enabled ASP.NET project that contains a ScriptManager control (see Creating an AJAX-Enabled ASP.NET Project) and a C1Calendar control.

In Design View

Complete the following steps:

1.   Click C1Calendar's smart tag () to open the C1Calendar Tasks menu.

2.   Click the Culture drop-down arrow and select a culture from the list. For this example, select Russian (Russia).

      The culture of the calendar changes to Russian.

In Source View

To change the culture of the calendar, add CultureInfo="Russian (Russia) to the <cc1:C1Calendar> tag so that the markup resembles the following:

 

<cc1:C1Calendar ID="C1Calendar1" runat="server"

            CultureInfo="Russian (Russia)" height="180px" width="230px">

</cc1:C1Calendar>

In Code

Complete the following steps:

1.   Import the following namespaces into your project:

      Visual Basic

      C#

2.   Add the following code to the Page_Load event:

      Visual Basic

      C#

3.   Open the project in a Studio for iPhone-compatible browser.

 This topic illustrates the following:

The following image shows a C1Calendar control with a Russian culture: 

 


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.