menu

ASP.NET MVC

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class Slider

    Show / Hide Table of Contents

    Class Slider

    Specifies the slider UI

    Inheritance
    System.Object
    CommonControl
    Slider
    Implements
    System.Web.UI.INamingContainer
    System.Web.UI.IPostBackEventHandler
    System.Web.UI.IPostBackDataHandler
    System.Web.UI.IUrlResolutionService
    Inherited Members
    CommonControl.RaisePostBackEvent(String)
    CommonControl.OnInit(EventArgs)
    CommonControl.OnLoad(EventArgs)
    Namespace: Syncfusion.JavaScript.Web
    Assembly: Syncfusion.EJ.Web.dll
    Syntax
    public class Slider : CommonControl, INamingContainer, IPostBackEventHandler, IPostBackDataHandler, IUrlResolutionService

    Constructors

    Slider()

    Declaration
    public Slider()

    Properties

    AllowMouseWheel

    Allows to move the slider handle by mouse wheel

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

    AnimationSpeed

    Specifies the Animation Speed of the slider handle

    Declaration
    public int AnimationSpeed { get; set; }
    Property Value
    Type Description
    System.Int32

    ClientSideOnChange

    Triggers when slider value has been changed

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

    ClientSideOnCreate

    Triggers when slider control has been created

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

    ClientSideOnDestroy

    Triggers when slider control has been destroyed

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

    ClientSideOnRenderingTicks

    Triggers when slider large tick has been created.

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

    ClientSideOnSlide

    Triggers when slider handle has been slide

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

    ClientSideOnStart

    Triggers when slider handle has been moves.

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

    ClientSideOnStop

    Triggers when slider handle has been stoped

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

    ClientSideOnTooltipChange

    Triggers when slider Tooltip value has been changed

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

    CssClass

    Specifies the cssclass of the slider ot customizing the appearance

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

    EnableAnimation

    Enable/Disable animation of the slider

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

    Enabled

    Enable/Disable the slider control

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

    EnablePersistence

    Takess the values from the browser cookies

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

    EnableRTL

    Specifies the right to left behavior of the slider

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

    Height

    specifies the height of the slider

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

    HtmlAttributes

    Allow to add the Html Attributes to Slider control

    Declaration
    public IDictionary<string, object> HtmlAttributes { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IDictionary<System.String, System.Object>

    IncrementStep

    Specifies the incremental step of the slider value

    Declaration
    public int IncrementStep { get; set; }
    Property Value
    Type Description
    System.Int32

    LargeStep

    Specifes the distance between two large slider Ticks

    Declaration
    public int LargeStep { get; set; }
    Property Value
    Type Description
    System.Int32

    MaxValue

    Specifes the maximum Value of the slider

    Declaration
    public int MaxValue { get; set; }
    Property Value
    Type Description
    System.Int32

    MinValue

    Specifes the minimum Value of the slider

    Declaration
    public int MinValue { get; set; }
    Property Value
    Type Description
    System.Int32

    Model

    Collection of Slider model items

    Declaration
    public SliderProperties Model { get; set; }
    Property Value
    Type Description
    SliderProperties

    Orientation

    Specifies the orientation of the slider.Two types are, 1.Horizontal 2.vertical

    Declaration
    [JsonConverter(typeof(StringEnumConverter))]
    public Orientation Orientation { get; set; }
    Property Value
    Type Description
    Orientation

    ReadOnly

    Specifies the readonly behavior of the slider

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

    ShowButtons

    Specifies the button option of the slider

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

    ShowRoundedCorner

    Specifies the rounded corner of the slider

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

    ShowScale

    Specifies the Scale option of the slider

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

    ShowSmallTicks

    Small scales between then two large scale

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

    ShowTooltip

    shows/Hides the rounded corner of the slider

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

    SliderType

    Represents the type of the slider

    Declaration
    [JsonConverter(typeof(StringEnumConverter))]
    public SlideType SliderType { get; set; }
    Property Value
    Type Description
    SlideType

    SmallStep

    Specifes the distance between two small slider Ticks

    Declaration
    public int SmallStep { get; set; }
    Property Value
    Type Description
    System.Int32

    Value

    specifies the value of the slider

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

    Values

    specifies the values of the range slider

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

    Width

    specifies the width of the slider

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

    Methods

    DependentScripts()

    Get the dependent scrips for slider control

    Declaration
    public List<string> DependentScripts()
    Returns
    Type Description
    System.Collections.Generic.List<System.String>

    GetDependentFiles()

    Get the dependent files for slider control

    Declaration
    public override List<string> GetDependentFiles()
    Returns
    Type Description
    System.Collections.Generic.List<System.String>
    Overrides
    CommonControl.GetDependentFiles()

    LoadViewState(Object)

    Restores view-state information from a previous page request.

    Declaration
    protected override void LoadViewState(object state)
    Parameters
    Type Name Description
    System.Object state
    Overrides
    CommonControl.LoadViewState(Object)

    OnPreRender(EventArgs)

    Modifying server controls before sending them to the client.

    Declaration
    protected override void OnPreRender(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    PostBackEventHandler(String, Dictionary<String, Object>)

    Gets a value that indicates whether the page is being loaded in response to a postback.

    Declaration
    public override void PostBackEventHandler(string EventName, Dictionary<string, object> args)
    Parameters
    Type Name Description
    System.String EventName
    System.Collections.Generic.Dictionary<System.String, System.Object> args
    Overrides
    CommonControl.PostBackEventHandler(String, Dictionary<String, Object>)

    Render()

    Render this instance

    Declaration
    public string Render()
    Returns
    Type Description
    System.String

    Render(HtmlTextWriter)

    Render method for rendering control

    Declaration
    protected override void Render(HtmlTextWriter writer)
    Parameters
    Type Name Description
    System.Web.UI.HtmlTextWriter writer
    Overrides
    CommonControl.Render(HtmlTextWriter)

    UpdateServerModel(Dictionary<String, Object>)

    Maintaining viewstate model values on post back

    Declaration
    public override void UpdateServerModel(Dictionary<string, object> ClientModel)
    Parameters
    Type Name Description
    System.Collections.Generic.Dictionary<System.String, System.Object> ClientModel
    Overrides
    CommonControl.UpdateServerModel(Dictionary<String, Object>)

    Events

    ChangeEvent

    Fires once Slider control value is changed successfully.

    Declaration
    public event Slider.SliderEventHandler ChangeEvent
    Event Type
    Type Description
    Slider.SliderEventHandler

    Implements

    System.Web.UI.INamingContainer
    System.Web.UI.IPostBackEventHandler
    System.Web.UI.IPostBackDataHandler
    System.Web.UI.IUrlResolutionService
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved