menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SliderLimits - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SliderLimits

    Represents the limits configuration for the Slider component, allowing you to define restricted areas and handle constraints within the slider range.

    Inheritance
    System.Object
    SfBaseComponent
    SliderLimits
    Inherited Members
    SfBaseComponent.Dispose()
    SfBaseComponent.Dispose(Boolean)
    SfBaseComponent.GetEffectivePlatform()
    SfBaseComponent.GetMainComponentPlatform()
    SfBaseComponent.IsMainLicenseComponent()
    SfBaseComponent.LicenseContext
    SfBaseComponent.OnObservableChange(String, Object, Boolean, NotifyCollectionChangedEventArgs)
    SfBaseComponent.ValidateLicense()
    Namespace: Syncfusion.Blazor.Inputs
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class SliderLimits : SfBaseComponent
    Remarks

    The SliderLimits class provides functionality to set limit bars on the slider component, which can restrict user interaction within specific ranges. You can configure minimum and maximum start/end values, enable or disable limits, and control handle locking behavior. This is particularly useful for scenarios where you need to prevent users from selecting values outside certain boundaries.

    Examples
    <SfSlider TValue="int" Min="0" Max="100" Value="30">
        <SliderLimits Enabled="true" 
                      MinStart="10" 
                      MaxStart="40" 
                      MinEnd="60" 
                      MaxEnd="90" 
                      StartHandleFixed="false" 
                      EndHandleFixed="false">
        </SliderLimits>
    </SfSlider>

    Constructors

    SliderLimits()

    Declaration
    public SliderLimits()

    Properties

    Enabled

    Gets or sets a value indicating whether the limits functionality is enabled for the slider.

    Declaration
    public bool Enabled { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if limits are enabled; otherwise, false. The default value is false.

    Remarks

    When enabled, the slider will display limit bars that restrict user interaction within the specified ranges. The limit bars are visual indicators that help users understand the allowed selection boundaries.

    EndHandleFixed

    Gets or sets a value indicating whether the end handle (second handle) is locked and cannot be moved by the user.

    Declaration
    public bool EndHandleFixed { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if the end handle is fixed and cannot be moved; otherwise, false. The default value is false.

    Remarks

    This property is applicable only for range sliders. When set to true, the end handle becomes immovable, allowing users to interact only with the start handle. This is useful in scenarios where you want to maintain a fixed upper boundary while allowing adjustment of the lower value.

    MaxEnd

    Gets or sets the maximum end limit value for the slider range.

    Declaration
    public Nullable<double> MaxEnd { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Double>

    A nullable double representing the maximum end limit value. The default value is null.

    Remarks

    This property defines the upper boundary for the end limit bar. When specified, it creates a limit bar that restricts the slider's end handle from moving beyond this value. If null, no maximum end limit is applied. The value should be within the slider's overall Min and Max range.

    MaxStart

    Gets or sets the maximum start limit value for the slider range.

    Declaration
    public Nullable<double> MaxStart { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Double>

    A nullable double representing the maximum start limit value. The default value is null.

    Remarks

    This property defines the upper boundary for the start limit bar. When specified, it creates a limit bar that restricts the slider's start handle from moving beyond this value. If null, no maximum start limit is applied. The value should be within the slider's overall Min and Max range and should be coordinated with MinStart to create a valid range.

    MinEnd

    Gets or sets the minimum end limit value for the slider range.

    Declaration
    public Nullable<double> MinEnd { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Double>

    A nullable double representing the minimum end limit value. The default value is null.

    Remarks

    This property defines the lower boundary for the end limit bar. When specified, it creates a limit bar that restricts the slider's end handle from moving below this value. If null, no minimum end limit is applied. The value should be within the slider's overall Min and Max range and should be coordinated with MaxEnd to create a valid range.

    MinStart

    Gets or sets the minimum start limit value for the slider range.

    Declaration
    public Nullable<double> MinStart { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Double>

    A nullable double representing the minimum start limit value. The default value is null.

    Remarks

    This property defines the lower boundary for the start limit bar. When specified, it creates a limit bar that restricts the slider's start handle from moving below this value. If null, no minimum start limit is applied. The value should be within the slider's overall Min and Max range.

    StartHandleFixed

    Gets or sets a value indicating whether the start handle (first handle) is locked and cannot be moved by the user.

    Declaration
    public bool StartHandleFixed { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if the start handle is fixed and cannot be moved; otherwise, false. The default value is false.

    Remarks

    This property is applicable only for range sliders. When set to true, the start handle becomes immovable, allowing users to interact only with the end handle. This is useful in scenarios where you want to maintain a fixed lower boundary while allowing adjustment of the upper value.

    Methods

    BuildRenderTree(RenderTreeBuilder)

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder __builder)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder

    OnAfterRenderAsync(Boolean)

    Method invoked after each time the component has been rendered.

    Declaration
    protected override Task OnAfterRenderAsync(bool firstRender)
    Parameters
    Type Name Description
    System.Boolean firstRender

    Set to true for the first time component rendering; otherwise gets false.

    Returns
    Type Description
    System.Threading.Tasks.Task

    "Task".

    Overrides
    SfBaseComponent.OnAfterRenderAsync(Boolean)

    OnInitializedAsync()

    Method invoked when the component is ready to start.

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task

    "Task".

    Overrides
    SfBaseComponent.OnInitializedAsync()

    OnParametersSetAsync()

    Method invoked when any changes in component state occurs.

    Declaration
    protected override Task OnParametersSetAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task

    "Task".

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved