Notification - Right-to-left Support

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

RadNotification supports right-to-left (RTL) language locales. The RadNotification control is created and added to the page as a child of the form element and in order to turn on the RTL support you should set dir=rtl to the html, body or form elements.

  • Default.aspx
    • Default.aspx
    • DefaultCS.aspx
<%@ Page Language="VB" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
    <style type="text/css">
        html
        {
            direction: rtl;
        }
        html, body, form
        {
            height: 533px;
            margin: 0;
            padding: 0;
        }
    </style>
</head>
<body style="background: url(back.jpg) no-repeat">
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadNotification RenderMode="Lightweight" ID="RadNotification1" runat="server" VisibleOnPageLoad="true"
        ShowTitleMenu="true" Title="Sample Title" Text="Sample notification text" Position="BottomLeft"
        OffsetX="30" OffsetY="-30" Height="100" Width="400" AutoCloseDelay="0" EnableRoundedCorners="true"
        EnableShadow="true">
        <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>

Find Assistance

Help Us Improve

Was this example helpful?