All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
New to Telerik UI for ASP.NET AJAX? Download free 30-day trial
RadProgressBar provides support for Right-to-Left direction.
To put the Telerik Progress Bar in RTL mode, its parent container should have its CSS direction property or dir attribute set to rtl.
<
div
style
=
"direction:rtl;"
>
telerik:RadProgressBar
runat
"server"
ID
"RadProgressBar1"
BarType
"Value"
Value
"80"
MinValue
"0"
MaxValue
"100"
</
This parent element can be the BODY, the HTML element, or just a simple wrapper element as in this example.
When set to RTL mode, the default progress indicator direction acts like reversed, but the Reversed property is still set to False as a default value.
<%@ Page Language="C#" CodeFile="DefaultCS.aspx.cs" Inherits="Telerik.Web.Examples.ProgressBar.RightToLeft.DefaultCS" %> <%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %> <%@ 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>Telerik ASP.NET Example</title> <link href="Styles.css" rel="stylesheet" /> </head> <body> <form id="form1" runat="server"> <telerik:RadScriptManager runat="server" ID="RadScriptManager1" /> <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" /> <telerik:RadAjaxManager runat="server" ID="RadAjaxManager1" DefaultLoadingPanelID="RadAjaxLoadingPanel1"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="ConfigurationPanel1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="rightToLeftContainer" /> <telerik:AjaxUpdatedControl ControlID="ConfigurationPanel1" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager> <telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1"></telerik:RadAjaxLoadingPanel> <div class="demo-container"> <div class="rightToLeftContainer" runat="server" id="rightToLeftContainer"> <telerik:RadProgressBar RenderMode="Lightweight" runat="server" ID="ValueProgressBar" BarType="Value" Value="80" MinValue="0" MaxValue="100"> </telerik:RadProgressBar> <telerik:RadProgressBar RenderMode="Lightweight" runat="server" ID="ChunkProgressBar" BarType="Chunk" Value="2" MinValue="0" MaxValue="5"> </telerik:RadProgressBar> <telerik:RadProgressBar RenderMode="Lightweight" runat="server" ID="IndeterminateProgressBar" Indeterminate="true"></telerik:RadProgressBar> </div> </div> <qsf:ConfiguratorPanel runat="server" ID="ConfigurationPanel1"> <Views> <qsf:View runat="server"> <qsf:ConfiguratorColumn runat="server" Size="Narrow"> <qsf:RadioButtonList runat="server" Label="Orientation" ID="OrientationConfigurator" AutoPostBack="true" OnSelectedIndexChanged="OrientationConfigurator_SelectedIndexChanged"> <asp:ListItem Text="Horizontal" Value="Horizontal" Selected="true" /> <asp:ListItem Text="Vertical" Value="Vertical" /> </qsf:RadioButtonList> </qsf:ConfiguratorColumn> <qsf:ConfiguratorColumn runat="server" Size="Narrow"> <qsf:RadioButtonList runat="server" ID="ReversedConfigurator" Label="Reversed" AutoPostBack="true" OnSelectedIndexChanged="ReversedConfigurator_SelectedIndexChanged"> <asp:ListItem Text="True" Value="true" /> <asp:ListItem Text="False" Value="false" Selected="true" /> </qsf:RadioButtonList> </qsf:ConfiguratorColumn> </qsf:View> </Views> </qsf:ConfiguratorPanel> </form> </body> </html>