Orientation
24 Jul 20191 minute to read
This property is used to set the Slider either in horizontal or vertical direction. By default, Slider renders in horizontal direction. Data type of this property is enum.
Possible Slider orientations are as follows,
Property | Allowed values | Description |
---|---|---|
Orientation | Vertical | Displays the Slider in a vertical direction. |
Horizontal (default value) | Displays the Slider in a horizontal direction. |
In an ASPX page, define the Slider control and configure the Orientation property as required.
<ej:Slider ID="VerticalSlider" runat="server" Height="150" Width="20" Orientation="Vertical"></ej:Slider>
The following screenshot displays the output of the above code example.