Calendar - Loacalization

March 2017
March 2017
 SunMonTueWedThuFriSat
92627281234
10567891011
1112131415161718
1219202122232425
132627282930311
142345678

Demo Configurator

Localization
Set Labels
Isolate this demo as a stand-alone application
  • About this demo
  • C#
  • VB

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.

Related Resources

  • DefaultCS.aspx
  • DefaultCS.aspx.cs
<%@ 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" Namespace="Telerik.QuickStart" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
    </telerik:RadAjaxLoadingPanel>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="CulturesList">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadCalendar1" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="BtnSet">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadCalendar1" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
                    <telerik:AjaxUpdatedControl ControlID="Label1"></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadCalendar1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadCalendar1"></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <div class="demo-containers">
        <div class="demo-container">
            <telerik:RadCalendar RenderMode="Lightweight" ID="RadCalendar1" runat="server" TitleFormat="MMMM yyyy" DayNameFormat="Short">
            </telerik:RadCalendar>
        </div>
    </div>

    <qsf:ConfiguratorPanel ID="ConfiguratorPanel1" runat="server">
        <Views>
            <qsf:View>
                <qsf:ConfiguratorColumn ID="ConfiguratorColumn1" runat="server" Title="Localization" Size="Medium">
              
                    <ul class="fb-group">
                        <li>
                            <qsf:ComboBox ID="CulturesList" runat="server" AutoPostBack="True" Size="Auto" Label="Choose Language"
                                OnSelectedIndexChanged="CulturesList_SelectedIndexChanged">
                            </qsf:ComboBox>
                        </li>
                        
                    </ul>
                   
                </qsf:ConfiguratorColumn>
                <qsf:ConfiguratorColumn ID="ConfiguratorColumn3" runat="server" Title="Set Labels" Size="Medium" >
                 <div class="col col-medium">
                    <ul class="fb-group">
                    <li>
                            <qsf:TextBox ID="TodayTB" runat="server" Text="Today" Size="Auto"  Label="Set 'Today' button text">
                            </qsf:TextBox>
                        </li>
                        <li>
                            <qsf:TextBox ID="OkTB" runat="server" Text="OK" Size="Auto" Label="Set 'OK' button text">
                            </qsf:TextBox>
                        </li>
                        <li >

                            <qsf:TextBox ID="CancelTB" runat="server" Size="Auto" Text="Cancel" Label="Set 'Cancel' button text">
                            </qsf:TextBox>
                        </li>
                        <li>
                            <qsf:TextBox ID="TitleDateFormat" runat="server" Size="Auto" Text="MMMM yyyy" Label="Set title's 'date format'">
                            </qsf:TextBox>
                        </li>
                        <li>
                            <qsf:Button ID="BtnSet" runat="server" Text="Apply changes" Size="Auto" OnClick="BtnSet_Click"></qsf:Button>
                            <asp:Label ID="Label1" runat="Server" Style="font-style: italic"></asp:Label>
                        </li>
                    </ul>
                    </div>
                </qsf:ConfiguratorColumn>
            </qsf:View>
        </Views>
    </qsf:ConfiguratorPanel>
    </form>
</body>
</html>

Find Assistance

Help Us Improve

Was this example helpful?