Skip to main content
13-Aquamarine
December 12, 2018
Question

How to set disable or enable(Read Only) properties for Vertical Slider Widget in Thingworx Composer?

  • December 12, 2018
  • 1 reply
  • 1897 views

Hi,

I wanted to set a disable or enable (Read only) properties for vertical slider widget in ThingWorx composer. How can I make it possible?

Tried with all possible ways but not able to set it.

 

Please provide some idea?

 

Please find the attached screen shot.

 

Thanks & Regards

Nagaraj Enamate

1 reply

5-Regular Member
December 20, 2018

Hello,

 

If I understand correctly you would like to disable the possibility of the Slider to be edited manually by dragging it correct?

If that's the case, to my knowledge there is no out of the box solution for this.

I could think of 2 possible workarounds to handle this regardless:

 

1. The easier solution, bind ValueChanged Event for Increment and Decrement, on any change while the Slider should be constant reset the value to the one you want the slider to stay at. This won't prevent the slider to be dragged but it will allow overriding any change and reset it.

 

2. Implement a custom Shape and use a Label to display the current setting, use this shape in place of the Slider when you don't want it to be changed. More implementation intensive.

 

For both solutions you would have to "cache" the values and reuse them to keep the slider position.

 

Please let me know if this answered your question.

 

Regards,

Pascal

 

 

 

 

Community Manager
December 31, 2018

Hi @NERaj.

 

If the response provided by @pgrodowski answered your question, please mark it as the Accepted Solution for the benefit of others with the same question.

 

Thank you for using our community!

 

Regards.

 

--Sharon