Telerik is a leading vendor of ASP.NET AJAX, ASP.NET MVC, Silverlight, WinForms and WPF controls and components, as well as .NET Reporting, .NET ORM , .NET CMS, Code Analysis, Mocking, Team Productivity and Automated Testing Tools. Building on its expertise in interface development and Microsoft technologies, Telerik helps customers build applications with unparalleled richness, responsiveness and interactivity. Telerik products help thousands of companies to be more productive and deliver reliable applications under budget and on time.
Version Q2 2011 released 07/12/2011
select

Calendar / Globalization

<<<November 2024>>>
 SunMonTueWedThuFriSat
44272829303112
453456789
4610111213141516
4717181920212223
4824252627282930
491234567
Example Configuration

  • 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.

Source Code

C# VB.NET
Show code in new window Demo isolation steps
  • <%@ 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" 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="VB"></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>

Get more than expected!

 
 

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.

Copyright 2002-2024 © Telerik. All right reserved
Telerik Inc, 201 Jones Rd, Waltham, MA 02451