Search results

Getting started with ASP.NET Core Range Slider control

20 Jan 2022 / 1 minute to read

This section briefly explains about how to render Slider control in your ASP.NET Core application. You can refer ASP.NET Core Getting Started documentation page for introduction part of the system requirements and configure the common specifications.

Starting with v16.2.0.x, if you reference Syncfusion assemblies from trial setup or from the NuGet feed, you also have to include a license key in your projects. Please refer to this link to know about registering Syncfusion license key in your ASP .NET Core application to use our controls.

Adding Slider control to the Application

Slider control can be rendered with the help of ejs-slider tag helper. Add the below code to your index.cshtml page which is present under Views/Home folder

Copied to clipboard
<ejs-slider id="default" value="40" type="MinRange" ></ejs-slider>

Run the application

After successful compilation of your application, simply press F5 to run the application.

The following example shows a default rendering of Slider.

Copied to clipboard
<ejs-slider id="default" value="40" type="MinRange" ></ejs-slider>
Copied to clipboard
public IActionResult Index()
            return View();

Output be like the below.

Slider Sample

See Also

Slider Types

Slider Formatting

Orientation Slider

Ticks in Slider

Tooltip in Slider