New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

Localization

November 2024
November 2024
 SunMonTueWedThuFriSat
44272829303112
453456789
4610111213141516
4717181920212223
4824252627282930
491234567
  • Demo Configurator
Localization
Set Labels

The ASP.NET AJAX Calendar 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

  • DefaultVB.aspx
  • DefaultVB.aspx.vb
<%@ Page CodeFile="DefaultVB.aspx.vb" Language="vb" AutoEventWireup="false" Inherits="Telerik.Web.Examples.Calendar.Functionality.Globalization.DefaultVB" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>
<!DOCTYPE html>
<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>

Support & Learning Resources

Find Assistance