This is a migrated thread and some comments may be shown as answers.

How can I disable the option to edit the slider without change his color

1 Answer 427 Views
Slider
This is a migrated thread and some comments may be shown as answers.
Shmulik
Top achievements
Rank 1
Shmulik asked on 07 Apr 2019, 03:22 PM

I don't want that my client could change the slider value.

When I set Slider.IsEnable= false all the slider colors change to gray.

 

1 Answer, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 10 Apr 2019, 12:08 PM
Hello Shmulik,

To achieve your requirement, I would suggest creating a custom style for the RadSlider control and removing the Disabled states or the IsEnabled triggers from the control templates of its elements. Please note that the exact modifications which will be required depend on the exact theme you're using and whether you've used the implicit styles approach or the StyleManager theming mechanism.

For you convenience, I've prepared a small sample project where I've removed the Disabled states for the control in the Office_Black theme with the standard Xaml binaries.

If you require any assistance in adapting this approach in your setup, please specify the exact theme(s) you're using as well as the theming approach you've chosen (implicit styles with NoXaml binaries or StyleManager with Xaml binaries) and I will gladly help you out further.

Regards,
Dilyan Traykov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Slider
Asked by
Shmulik
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Share this question
or