This is a migrated thread and some comments may be shown as answers.

programmatically remove the selected item

1 Answer 70 Views
Buttons, RadioButton, CheckBox, etc
This is a migrated thread and some comments may be shown as answers.
Вадим
Top achievements
Rank 1
Iron
Iron
Вадим asked on 13 Jun 2019, 08:02 AM

There are three elements that are grouped.
The customer demanded that, when pressed again, the selection was removed.
Hung on the event items Click and wrote

but the selection does not disappear. How to fix?

if(radiobutton)
    radiobutton.isChecked = false
else
    radiobutton.isChecked = true

1 Answer, 1 is accepted

Sort by
0
Вадим
Top achievements
Rank 1
Iron
Iron
answered on 13 Jun 2019, 08:04 AM
if(radiobutton.isChecked)
radiobutton.isChecked = false
else
radiobutton.isChecked = true
Tags
Buttons, RadioButton, CheckBox, etc
Asked by
Вадим
Top achievements
Rank 1
Iron
Iron
Answers by
Вадим
Top achievements
Rank 1
Iron
Iron
Share this question
or