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:
Imports C1.Web.iPhone.C1Calendar
Imports System.Globalization
•C#
using C1.Web.iPhone.C1Calendar;
using System.Globalization;
2. Add the following code to the Page_Load event:
Dim RCulture As System.Globalization.CultureInfo
RCulture = New CultureInfo("ru-Ru", True)
•C#
System.Globalization.CultureInfo RCulture = new CultureInfo("ru-Ru", true);
C1Calendar1.CultureInfo = RCulture;
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: