Read only radio button

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
billcross
Posts: 30
Joined: Thu Apr 07, 2016 3:01 am

Read only radio button

Post by billcross »

I have set the readonly property of a radio button, but it does not seem to prevent clicking on the field and changing it's value, is this a bug ?
trossiter
Posts: 34
Joined: Wed Feb 22, 2017 3:19 am

Re: Read only radio button

Post by trossiter »

Are you setting its ReadOnly property to True because you don't want the user to change it? If so, I would set its Enabled property to False instead. This will grey it out and visually tell the user that this radio button's value currently cannot be changed.

Just make sure you do the same for the rest of the radio buttons you have grouped together. An easy way to do this is if all the radio buttons you want to disable are in the same group box, set the group box's EnableChildren property to True. This will allow all of the child components in the group box to share its Enabled property. Then all you have to do is enable or disable the group box, and everything inside it will be enabled or disabled as well.
Theron Rossiter
Kawasaki Motors Manufacturing Corp., USA
billcross
Posts: 30
Joined: Thu Apr 07, 2016 3:01 am

Re: Read only radio button

Post by billcross »

I have done that but I still think that setting ReadOnly property to True should make the radio button unchangeable.
Post Reply