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

2 posts, 0 answers
  1. Shmulik
    Shmulik avatar
    1 posts
    Member since:
    Oct 2018

    Posted 07 Apr Link to this post

    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.

     

  2. Dilyan Traykov
    Admin
    Dilyan Traykov avatar
    1013 posts

    Posted 10 Apr Link to this post

    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.
Back to Top