Hi @Bob Dang ,
ClearSelection unselects any selected item. You might use this, for instance, after you've taken action on the user's selection. The available selections are left, but none of the items are selected.
In your codes,for loop all the items and if one item's property is selected, it will change it unselected. And then continue to check the next item.
Best regards,
Yijing Sun
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.