EnableDisable the Slider in EJ 1 ASP.NET MVC Slider
16 Aug 2018 / 1 minute to read
Slider widget includes an option to enable/disable it. When you disable the Slider, it is displayed in a blur state and you cannot perform any operations in it.
Enabled
Using this Enabled property you can enable/disable the Slider. Data type of this property is “Boolean”. Also you can enable/disable the Slider by using enable and disable methods.
The following steps explains you on how to disable the Slider.
- In an VIEW page, specify the helper elements to render the Default Slider.
// Add this code in your view page
@(Html.EJ().Slider("defaultSlider").Value("60").Width("500").Enabled(false))
Execute the above code example to render the following output.
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page