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
Amarjit, the ReadOnly property is not a bindable property, so you won't be able to enable/ disable at runtime.
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?
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.
Hidding is not suitable in my usecase because the use will decide whether to update or not base on the value.
Custom widget might only be the solution.
Thanks for your suggestions.
There's a workaround with 2 textboxes, one readonly and one editable which are on the same place in the Composer. Click on Update button will hide the readonly textbox and show the editable textbox while enabling and disabling Visible properties.
This works (although it is a bad design), I would like to consider this as a work around.
With Thanks and Regards
Amarjit Thouna