Skip to main content
1-Visitor
March 31, 2016
Question

How to change TextBox ReadOnly property on Runtime

  • March 31, 2016
  • 1 reply
  • 3457 views

Hi,

I have been trying to changed the ReadOnly Property of TextBox​, and does not find a solution yet.

Is anyone done this earlier or any suggestions?

Regards

Amarjit Thouna

1 reply

5-Regular Member
March 31, 2016

Amarjit, the ReadOnly property is not a bindable property, so you won't be able to enable/ disable at runtime.

1-Visitor
April 1, 2016

By usecase is when mashup is loaded, it will display the textbox in readonly mode.

When a user click a button like "Update" it will make the TextBox Editable.

So is this usecase possible with the inbuilt ThingWorx features?

Or do I have to develop a custom feature (Widget) for this?

5-Regular Member
April 1, 2016

Amarjit, an alternative way would be to hide the textbox. The 'Visible' property is bindable, so when the user clicks the 'update' button like you mentioned, that could trigger the visible property and make the textbox visible. If you want to use ReadOnly, that would indeed be a custom feature.