Demos About Radzen
Search Results for

    Show / Hide Table of Contents

    Class RadzenSlider<TValue>

    RadzenSlider component.

    Inheritance
    System.Object
    RadzenComponent
    FormComponent<TValue>
    RadzenSlider<TValue>
    Implements
    IDisposable
    IRadzenFormComponent
    Inherited Members
    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>._value
    FormComponent<TValue>.Change
    FormComponent<TValue>.FieldIdentifier
    FormComponent<TValue>.ValueExpression
    FormComponent<TValue>.GetValue()
    FormComponent<TValue>.OnContextMenu(MouseEventArgs)
    FormComponent<TValue>.GetClassList(String)
    RadzenComponent.Attributes
    RadzenComponent.Element
    RadzenComponent.MouseEnter
    RadzenComponent.MouseLeave
    RadzenComponent.ContextMenu
    RadzenComponent.Culture
    RadzenComponent.DefaultCulture
    RadzenComponent.OnMouseEnter()
    RadzenComponent.OnMouseLeave()
    RadzenComponent.OnContextMenu(Microsoft.AspNetCore.Components.Web.MouseEventArgs)
    RadzenComponent.Style
    RadzenComponent.Visible
    RadzenComponent.GetCssClass()
    RadzenComponent.GetId()
    RadzenComponent.Debounce(Func<Task>, Int32)
    RadzenComponent.UniqueID
    RadzenComponent.JSRuntime
    RadzenComponent.IsJSRuntimeAvailable
    RadzenComponent.OnInitialized()
    RadzenComponent.Reference
    RadzenComponent.RaiseContextMenu(Microsoft.AspNetCore.Components.Web.MouseEventArgs)
    RadzenComponent.RaiseMouseEnter()
    RadzenComponent.RaiseMouseLeave()
    RadzenComponent.CurrentStyle
    Namespace: Radzen.Blazor
    Assembly: Radzen.Blazor.dll
    Syntax
    public class RadzenSlider<TValue> : FormComponent<TValue>, 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}")) />

    Properties

    HasValue

    Gets a value indicating whether this instance has value.

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

    true if this instance has value; otherwise, false.

    Overrides
    Radzen.FormComponent<TValue>.HasValue

    Max

    Determines the maximum value.

    Declaration
    public decimal Max { get; set; }
    Property Value
    Type Description
    System.Decimal

    The maximum value.

    Min

    Determines the minimum value.

    Declaration
    public decimal Min { get; set; }
    Property Value
    Type Description
    System.Decimal

    The minimum value.

    Range

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

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

    true if range; otherwise, false.

    Step

    Gets or sets the step.

    Declaration
    public string Step { get; set; }
    Property Value
    Type Description
    System.String

    The step.

    Value

    Gets or sets the value.

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

    The value.

    Overrides
    Radzen.FormComponent<TValue>.Value

    Methods

    Dispose()

    Disposes this instance.

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

    GetComponentCssClass()

    Gets the component CSS class.

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

    OnAfterRenderAsync(Boolean)

    Called by the Blazor runtime.

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

    OnValueChange(Decimal, Boolean)

    Called when value changed.

    Declaration
    public async System.Threading.Tasks.Task OnValueChange(decimal value, bool isMin)
    Parameters
    Type Name Description
    System.Decimal value

    The value.

    System.Boolean isMin

    if set to true [is minimum].

    Returns
    Type Description
    System.Threading.Tasks.Task

    SetParametersAsync(ParameterView)

    Sets the parameters asynchronous.

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

    The parameters.

    Returns
    Type Description
    Task

    Task.

    Overrides
    Radzen.FormComponent<TValue>.SetParametersAsync(ParameterView)

    Implements

    IDisposable
    IRadzenFormComponent

    Boost your Blazor development with Radzen

    Radzen is a desktop tool that gives you the power to create line of business applications. Build and launch Blazor apps visually, while we generate clean code for you.

    Learn More

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