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

Localization


  • Argentina
  • Australia
  • Brazil
  • Canada
  • Chile
  • China
  • Egypt
  • England
  • France
  • Germany
  • India
  • Indonesia
  • Kenya
  • Mexico
  • New Zealand
  • South Africa
  • USA

RadListBox provides a mechanism for quick and easy localization. All button labels and messages in the control area are obtained from the resource files located in the WebSite's App_GlobalResources directory, so that the language can be switched with a single property (Culture).
e.g. <telerik:RadListBox id="RadListBox1" runat="server" Culture="en-US" />

Developers can also localize the component for languages, which are not provided with the RadListBox distribution by modifying the provided resx file.

Additionally, each of the localization strings can be modified at runtime using the Localization property. This saves the need to create a new localization file to change a single string.

  • DefaultVB.aspx
  • DefaultVB.aspx.vb
  • styles.css
<%@ Page Language="vb" CodeFile="DefaultVB.aspx.vb" AutoEventWireup="false" Inherits="ListBox.Examples.Localization.DefaultVB" %>

<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
    <link rel="stylesheet" type="text/css" href="styles.css" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
    <div class="demo-container size-wide">
        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
            <telerik:RadComboBox RenderMode="Lightweight" ID="RadComboBox1" runat="server" Width="300px" AutoPostBack="true"
                Style="padding-bottom: 10px" OnSelectedIndexChanged="RadComboBox1_SelectedIndexChanged">
                <Items>
                    <telerik:RadComboBoxItem Text="English - USA" Value="en-US" ImageUrl="images/en-US.png" />
                    <telerik:RadComboBoxItem Text="French - France" Value="fr-FR" ImageUrl="images/fr-FR.png" />
                    <telerik:RadComboBoxItem Text="German - Germany" Value="de-DE" ImageUrl="images/de-DE.png" />
                </Items>
            </telerik:RadComboBox>
            <br />
            <telerik:RadListBox RenderMode="Lightweight" runat="server" ID="RadListBox1" Width="400px" Height="200px"
                AllowTransfer="true" TransferToID="RadListBoxDestination" ButtonSettings-RenderButtonText="true">
                <ButtonSettings AreaWidth="160px"></ButtonSettings>
                <Items>
                    <telerik:RadListBoxItem Text="Argentina"></telerik:RadListBoxItem>
                    <telerik:RadListBoxItem Text="Australia"></telerik:RadListBoxItem>
                    <telerik:RadListBoxItem Text="Brazil"></telerik:RadListBoxItem>
                    <telerik:RadListBoxItem Text="Canada"></telerik:RadListBoxItem>
                    <telerik:RadListBoxItem Text="Chile"></telerik:RadListBoxItem>
                    <telerik:RadListBoxItem Text="China"></telerik:RadListBoxItem>
                    <telerik:RadListBoxItem Text="Egypt"></telerik:RadListBoxItem>
                    <telerik:RadListBoxItem Text="England"></telerik:RadListBoxItem>
                    <telerik:RadListBoxItem Text="France"></telerik:RadListBoxItem>
                    <telerik:RadListBoxItem Text="Germany"></telerik:RadListBoxItem>
                    <telerik:RadListBoxItem Text="India"></telerik:RadListBoxItem>
                    <telerik:RadListBoxItem Text="Indonesia"></telerik:RadListBoxItem>
                    <telerik:RadListBoxItem Text="Kenya"></telerik:RadListBoxItem>
                    <telerik:RadListBoxItem Text="Mexico"></telerik:RadListBoxItem>
                    <telerik:RadListBoxItem Text="New Zealand"></telerik:RadListBoxItem>
                    <telerik:RadListBoxItem Text="South Africa"></telerik:RadListBoxItem>
                    <telerik:RadListBoxItem Text="USA"></telerik:RadListBoxItem>
                </Items>
            </telerik:RadListBox>
            <telerik:RadListBox RenderMode="Lightweight" runat="server" ID="RadListBoxDestination" Width="250px" Height="200px"
                AllowReorder="true" AllowDelete="True">
                <ButtonSettings AreaWidth="40px"></ButtonSettings>
            </telerik:RadListBox>
        </telerik:RadAjaxPanel>
    </div>
</asp:content>
    </form>
</body>
</html>

Support & Learning Resources

Find Assistance