Understanding expected behaviour of RadioButtons - how to group them

Created at 12 Jan 2024, 00:34
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
CT

ctid4921325

Joined 18.11.2023

Understanding expected behaviour of RadioButtons - how to group them
12 Jan 2024, 00:34


Hi there

I'm wondering how to make several/seperate  groupings of radiobuttons?

ChatGPT suggested the key to grouping them was controlling the IsChecked property of all the controls in your ‘group’ by handling through the Click event.

What I'm finding though is every radiobutton on the page  is behaving as if its all one group.

The docs don't seem to say what should happen.  So I think my question is how to I create  more than 1 group of radiobuttons, so the groups don't affect each other?


@ctid4921325
Replies

PanagiotisCharalampous
12 Jan 2024, 07:17

Hi there,

The correct property to modify is GroupName

Best regards,

Panagiotis


@PanagiotisCharalampous

ctid4921325
17 Jan 2024, 00:06

awesome, thanks for that, problem solved


@ctid4921325