R1 2019 Release is now here with MultiColumnComboBox component and more! Register now for the Webinar.

Slider - Orientation

Horizontal slider (default)

Vertical slider (Orientation="Vertical")
Isolate this demo as a stand-alone application
  • About this demo
  • C#
  • VB
The Orientation property of the RadSlider defines how the slider will be displayed in the page - vertically or horizontally. By default the slider will render horizontally. To use the property:
  • declaratively
    Orientation="Horizontal" or
  • code-behind
    RadSlider1.Orentation = Telerik.Web.UI.Orientation.Vertical; or
    RadSlider1.Orentation = Telerik.Web.UI.Orientation.Horizontal;
  • client-side
    RadSlider1.redraw(); or
  • DefaultCS.aspx
<%@ Page Language="c#" AutoEventWireup="false"  %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
    <div class="demo-container size-thin">
        <strong>Horizontal slider (default)</strong><br />
        <telerik:RadSlider RenderMode="Lightweight" ID="RadSlider1" runat="server" Value="50">
        <br />
        <strong>Vertical slider (Orientation="Vertical")</strong><br />
        <telerik:RadSlider RenderMode="Lightweight" ID="RadSlider3" runat="server" Value="50" Orientation="Vertical">

Find Assistance

Help Us Improve

Was this example helpful?