RadCalendar supports all the cultures in the System.Globalization namespace that are based on the Gregorian calendar. The example demonstrates how the calendar culture can be changed and how you could localize the MonthYearFastNavigation popup buttons as well.
<%@ Page CodeFile="DefaultCS.aspx.cs" Language="c#" Inherits="Telerik.Web.Examples.Calendar.Functionality.Globalization.DefaultCS" %><%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %><%@ Register TagPrefix="qsf" TagName="Header" Src="~/Common/Header.ascx" %><%@ Register TagPrefix="qsf" TagName="HeadTag" Src="~/Common/HeadTag.ascx" %><%@ Register TagPrefix="qsf" TagName="Footer" Src="~/Common/Footer.ascx" %><%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <qsf:HeadTag runat="server" ID="Headtag1"></qsf:HeadTag></head><body class="BODY"> <form runat="server" id="mainForm" method="post"> <qsf:Header ID="Header1" runat="server" NavigationLanguage="CS"></qsf:Header> <telerik:RadScriptManager ID="RadScriptManager1" runat="server" /> <telerik:RadFormDecorator ID="RadFormDecorator1" runat="Server" /> <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" /> <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="CulturesList"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadCalendar1" LoadingPanelID="RadAjaxLoadingPanel1" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="BtnSet"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadCalendar1" LoadingPanelID="RadAjaxLoadingPanel1" /> <telerik:AjaxUpdatedControl ControlID="Label1" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="RadCalendar1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadCalendar1" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager> <div style="float: left"> <telerik:RadCalendar ID="RadCalendar1" runat="server" TitleFormat="MMMM yyyy" DayNameFormat="Short"> </telerik:RadCalendar> </div> <qsf:ConfiguratorPanel ID="ConfiguratorPanel1" runat="Server" Orientation="vertical"> <br /> Select culture: <br /> <label for="CulturesList"> </label> <telerik:RadComboBox ID="CulturesList" runat="server" AutoPostBack="True" Width="215px" OnSelectedIndexChanged="CulturesList_SelectedIndexChanged"> </telerik:RadComboBox> <br /> <br /> Type a specific text to set the fast navigation buttons / title date format: <table> <tr> <td> 'Today' button </td> <td> <telerik:RadTextBox ID="TodayTB" runat="server" Text="Today" Width="80px"> </telerik:RadTextBox> </td> </tr> <tr> <td> 'OK' button </td> <td> <telerik:RadTextBox ID="OkTB" runat="server" Text="OK" Width="80px"> </telerik:RadTextBox> </td> </tr> <tr> <td> 'Cancel' button </td> <td> <telerik:RadTextBox ID="CancelTB" runat="server" Text="Cancel" Width="80px"> </telerik:RadTextBox> </td> </tr> <tr> <td> Title 'date format' </td> <td> <telerik:RadTextBox ID="TitleDateFormat" runat="server" Text="MMMM yyyy" Width="80px"> </telerik:RadTextBox> </td> </tr> </table> <br /> <asp:Button ID="BtnSet" runat="server" Text="Apply changes" Width="215px" OnClick="BtnSet_Click"> </asp:Button> <asp:Label ID="Label1" runat="Server" Style="font-style: italic" /> </qsf:ConfiguratorPanel> <qsf:Footer ID="Footer1" runat="server"></qsf:Footer> </form></body></html>
Take your time to truly experience the power of RadControls for ASP.NET AJAX with a free 60-day trial backed up by Telerik’s unlimited dedicated support.
Download your RadControls for ASP.NET AJAX trial and jumpstart your development with the available Getting Started resources.
If you have any questions, do not hesitate to contact us at sales@telerik.com.