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

Localization

You can localize RadNotification by setting its TitleMenuToolTip and CloseButtonToolTip properties to the desired values. This easy localization can be done in a few manners—e.g by using resource files or setting and evaluating directly the property.

Click on a flag to localize the tooltips of the title menu and the close button of the notification message according to the chosen country.

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

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
        <link href="styles.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
        <form id="form1" runat="server">
            <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
            </telerik:RadScriptManager>
            <telerik:RadAjaxManager ID="ajaxManager" runat="server">
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="ConfiguratorPanel1">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="RadNotification1" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                </AjaxSettings>
            </telerik:RadAjaxManager>
            <ul class="langUl">
                <li>
                    <asp:ImageButton ID="dBtn" runat="server" ImageUrl="images/flagDe.png" CommandArgument="de"
                                     OnCommand="SetLanguage" />
                </li>
                <li>
                    <asp:ImageButton ID="fBtn" runat="server" ImageUrl="images/flagFr.png" CommandArgument="fr"
                                     OnCommand="SetLanguage" />
                </li>
                <li style="margin-right: 0;">
                    <asp:ImageButton ID="eBtn" runat="server" ImageUrl="images/flagGb.png" CommandArgument="en"
                                     OnCommand="SetLanguage" />
                </li>
            </ul>
            <telerik:RadNotification RenderMode="Lightweight" ID="RadNotification1" runat="server" CloseButtonToolTip="<%# CloseToolTip%>"
                                     Skin="Black" VisibleOnPageLoad="true" ShowTitleMenu="true" TitleMenuToolTip="<%# MenuToolTip %>"
                                     Title="Notification Localization" Text="The tooltips for the close and menu buttons will change when the new language is selected."
                                     Width="300" OffsetX="-30" OffsetY="-30" AutoCloseDelay="0">
                <NotificationMenu>
                    <Items>
                        <telerik:RadMenuItem Text="Sample item 1">
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem Text="Sample item 2">
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem Text="Sample item 3">
                        </telerik:RadMenuItem>
                    </Items>
                </NotificationMenu>
            </telerik:RadNotification>
        </form>
    </body>
</html>

Support & Learning Resources

Find Assistance