Demos About Radzen
Search Results for

    Show / Hide Table of Contents

    Class RadzenSlider<TValue>

    RadzenSlider component.

    Inheritance
    object
    ComponentBase
    RadzenComponent
    FormComponent<TValue>
    RadzenSlider<TValue>
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    IRadzenFormComponent
    Inherited Members
    FormComponent<TValue>._value
    FormComponent<TValue>.GetValue()
    FormComponent<TValue>.OnContextMenu(MouseEventArgs)
    FormComponent<TValue>.GetClassList(string)
    FormComponent<TValue>.FocusAsync()
    FormComponent<TValue>.Name
    FormComponent<TValue>.TabIndex
    FormComponent<TValue>.Placeholder
    FormComponent<TValue>.Disabled
    FormComponent<TValue>.EditContext
    FormComponent<TValue>.Form
    FormComponent<TValue>.ValueChanged
    FormComponent<TValue>.IsBound
    FormComponent<TValue>.Change
    FormComponent<TValue>.FieldIdentifier
    FormComponent<TValue>.ValueExpression
    FormComponent<TValue>.FormFieldContext
    FormComponent<TValue>.CurrentPlaceholder
    RadzenComponent.OnMouseEnter()
    RadzenComponent.OnMouseLeave()
    RadzenComponent.GetCssClass()
    RadzenComponent.GetId()
    RadzenComponent.Debounce(Func<Task>, int)
    RadzenComponent.OnInitialized()
    RadzenComponent.RaiseContextMenu(MouseEventArgs)
    RadzenComponent.RaiseMouseEnter()
    RadzenComponent.RaiseMouseLeave()
    RadzenComponent.Attributes
    RadzenComponent.Element
    RadzenComponent.MouseEnter
    RadzenComponent.MouseLeave
    RadzenComponent.ContextMenu
    RadzenComponent.Culture
    RadzenComponent.DefaultCulture
    RadzenComponent.Style
    RadzenComponent.Visible
    RadzenComponent.UniqueID
    RadzenComponent.JSRuntime
    RadzenComponent.IsJSRuntimeAvailable
    RadzenComponent.Reference
    RadzenComponent.CurrentStyle
    ComponentBase.OnInitializedAsync()
    ComponentBase.OnParametersSet()
    ComponentBase.OnParametersSetAsync()
    ComponentBase.StateHasChanged()
    ComponentBase.ShouldRender()
    ComponentBase.OnAfterRender(bool)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.DispatchExceptionAsync(Exception)
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Radzen.Blazor
    Assembly: Radzen.Blazor.dll
    Syntax
    public class RadzenSlider<TValue> : FormComponent<TValue>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable, IRadzenFormComponent
    Type Parameters
    Name Description
    TValue

    The type of the value.

    Examples
    <RadzenSlider @bind-Value=@value TValue="int" Min="0" Max="100" Change=@(args => Console.WriteLine($"Value: {args}")) />

    Constructors

    RadzenSlider()

    RadzenSlider component.

    Declaration
    public RadzenSlider()
    Examples
    <RadzenSlider @bind-Value=@value TValue="int" Min="0" Max="100" Change=@(args => Console.WriteLine($"Value: {args}")) />

    Properties

    HasValue

    Gets a value indicating whether this instance has value.

    Declaration
    public override bool HasValue { get; }
    Property Value
    Type Description
    bool

    true if this instance has value; otherwise, false.

    Overrides
    FormComponent<TValue>.HasValue

    Max

    Determines the maximum value.

    Declaration
    [Parameter]
    public decimal Max { get; set; }
    Property Value
    Type Description
    decimal

    The maximum value.

    Min

    Determines the minimum value.

    Declaration
    [Parameter]
    public decimal Min { get; set; }
    Property Value
    Type Description
    decimal

    The minimum value.

    Orientation

    Specifies the orientation. Set to Orientation.Horizontal by default.

    Declaration
    [Parameter]
    public Orientation Orientation { get; set; }
    Property Value
    Type Description
    Orientation

    Range

    Gets or sets a value indicating whether this RadzenSlider<TValue> is range.

    Declaration
    [Parameter]
    public bool Range { get; set; }
    Property Value
    Type Description
    bool

    true if range; otherwise, false.

    Step

    Gets or sets the step.

    Declaration
    [Parameter]
    public string Step { get; set; }
    Property Value
    Type Description
    string

    The step.

    Value

    Gets or sets the value.

    Declaration
    [Parameter]
    public override TValue Value { get; set; }
    Property Value
    Type Description
    TValue

    The value.

    Overrides
    FormComponent<TValue>.Value

    Methods

    BuildRenderTree(RenderTreeBuilder)

    RadzenSlider component.

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder __builder)
    Parameters
    Type Name Description
    RenderTreeBuilder __builder
    Overrides
    ComponentBase.BuildRenderTree(RenderTreeBuilder)

    Dispose()

    Disposes this instance.

    Declaration
    public override void Dispose()
    Overrides
    FormComponent<TValue>.Dispose()

    GetComponentCssClass()

    Gets the component CSS class.

    Declaration
    protected override string GetComponentCssClass()
    Returns
    Type Description
    string
    Overrides
    RadzenComponent.GetComponentCssClass()

    OnAfterRenderAsync(bool)

    Called by the Blazor runtime.

    Declaration
    protected override Task OnAfterRenderAsync(bool firstRender)
    Parameters
    Type Name Description
    bool firstRender
    Returns
    Type Description
    Task
    Overrides
    RadzenComponent.OnAfterRenderAsync(bool)

    OnValueChange(decimal, bool)

    Called when value changed.

    Declaration
    [JSInvokable("RadzenSlider.OnValueChange")]
    public Task OnValueChange(decimal value, bool isMin)
    Parameters
    Type Name Description
    decimal value

    The value.

    bool isMin

    if set to true [is minimum].

    Returns
    Type Description
    Task

    SetParametersAsync(ParameterView)

    Sets the parameters asynchronous.

    Declaration
    public override Task SetParametersAsync(ParameterView parameters)
    Parameters
    Type Name Description
    ParameterView parameters

    The parameters.

    Returns
    Type Description
    Task

    Task.

    Overrides
    FormComponent<TValue>.SetParametersAsync(ParameterView)

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    IRadzenFormComponent

    Introducing Radzen Blazor Studio

    Radzen Blazor Studio is a software development environment that empowers developers to design, build and deploy Blazor applications without the traditional hurdles. Write less code and get more done.

    Learn More

    Download Now
    Download Now
    In This Article
    Back to top Radzen Blazor Components, © 2018-2025 Radzen. Source Code licensed under MIT