Orientation in ASP.NET MVC Range Slider

21 Aug 20261 minute to read

The Slider can be displayed, either in horizontal or vertical by using orientation property. By default, the Slider renders in horizontal orientation.

@using Syncfusion.EJ2
@using Syncfusion.EJ2.Inputs
    @Html.EJS().Slider("default").Value("30").Orientation(SliderOrientation.Vertical).Render()

<style>
    #default {
        height: 300px;
    }
</style>
public IActionResult Index()
    {
        return View();
    }

ASP .NET Core - Slider - Orientation