New to Telerik UI for BlazorStart a free 30-day trial

A component that lets you select a value range with two draggable handles. Supports two-way binding for StartValue/StartValueChanged and EndValue/EndValueChanged with validation via StartValueExpression/EndValueExpression; keyboard navigation, min/max and step logic (inherited), orientation and RTL support, ARIA labeling, and a unified change event through OnChange that fires on commit (drag end/track click).

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Type Parameters:

TValue

Syntax:

C#
public class TelerikRangeSlider<TValue> : TelerikSliderBase<TValue>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseBaseComponentTelerikSliderBase<TValue>TelerikRangeSlider<TValue>

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members TelerikSliderBase<TValue>.OnParametersSetAsync()TelerikSliderBase<TValue>.OnAfterRenderAsync(bool)TelerikSliderBase<TValue>.Dispose()TelerikSliderBase<TValue>.CascadedEditContextTelerikSliderBase<TValue>.EnabledTelerikSliderBase<TValue>.SmallStepTelerikSliderBase<TValue>.LargeStepTelerikSliderBase<TValue>.MinTelerikSliderBase<TValue>.MaxTelerikSliderBase<TValue>.TickPositionTelerikSliderBase<TValue>.OrientationTelerikSliderBase<TValue>.WidthTelerikSliderBase<TValue>.LabelTemplateTelerikSliderBase<TValue>.DecimalsTelerikSliderBase<TValue>.AriaLabelledByTelerikSliderBase<TValue>.AriaDescribedByTelerikSliderBase<TValue>.TabIndexBaseComponent.ShouldRender()BaseComponent.OnInitializedAsync()BaseComponent.InitLocalizer()BaseComponent.ThrowIfParameterIsNull(object, string)BaseComponent.HaveOptionsChanged(IDictionary<string, object>, IDictionary<string, object>)BaseComponent.GetClassString(params string[])BaseComponent.InvokeAsync<T>(string, params object[])BaseComponent.InvokeAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidAsync(string, params object[])BaseComponent.InvokeVoidAsyncWithoutAwait(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidComponentMethodAsync(string, params object[])BaseComponent.InvokeComponentVoidMethodAsync(string, object)BaseComponent.InvokeDisposeAsync()BaseComponent.StateHasChanged()BaseComponent.RootComponentBaseComponent.ClassComponentBase.OnParametersSet()ComponentBase.OnAfterRender(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.DispatchExceptionAsync(Exception)ComponentBase.SetParametersAsync(ParameterView)...

Constructors

C#
public TelerikRangeSlider()

Methods

C#
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters:__builderRenderTreeBuilder

Overrides: ComponentBase.BuildRenderTree(RenderTreeBuilder)

C#
protected override void OnInitialized()

Overrides: TelerikSliderBase<TValue>.OnInitialized()

Properties

[Accessibility] Specifies the aria-label attribute of the component.

C#
[Parameter]
public string AriaLabel { get; set; }

Enables WebMCP tool registration for this RangeSlider. When true, RangeSlider operations are exposed as tools discoverable by AI models through the browser. Default value is false.

C#
[Parameter]
public bool EnableWebMcpTools { get; set; }

EndValue

TValue

Specifies the end value of the range slider. Used with two-way binding.

C#
[Parameter]
public TValue EndValue { get; set; }

Specifies the callback that's called when the end value changes.

C#
[Parameter]
public EventCallback<TValue> EndValueChanged { get; set; }

Specifies the expression that identifies the bound end value.

C#
[Parameter]
public Expression<Func<TValue>> EndValueExpression { get; set; }

Specifies the callback that's called when the current values are committed (confirmed) by the user - OnDragEnd and OnClick of slider track.

C#
[Parameter]
public virtual EventCallback<RangeSliderChangeEventArgs> OnChange { get; set; }

Provides configuration for WebMCP tools, such as a Name to distinguish this RangeSlider from others on the same page.

C#
[Parameter]
public RenderFragment RangeSliderSettings { get; set; }

Specifies the start value of the range slider. Used with two-way binding.

C#
[Parameter]
public TValue StartValue { get; set; }

Specifies the callback that's called when the start value changes.

C#
[Parameter]
public EventCallback<TValue> StartValueChanged { get; set; }

Specifies the expression that identifies the bound start value.

C#
[Parameter]
public Expression<Func<TValue>> StartValueExpression { get; set; }