Introduction to modern Radio group control
Radio group (or radio button) has been around in Power Apps ever since Power Apps came into existence. So although it isn't a new control, the modern version has some minor differences (read: additions and some subtractions) when compared to the classic radio group control. This will probably be one of the shorter modern control blog post as the differences between the classic and modern radio group are very minimal.
New Properties
- Layout - There are 3 options:
- 'RadioGroupCanvas.Layout'.Vertical (default)
- 'RadioGroupCanvas.Layout'.Horizontal
- 'RadioGroupCanvas.Layout'.HorizontalStacked
Renamed Properties
- DefaultSelectedItems - This used to be called Default, which honestly made more sense. So if a radio group control has the Items property set to ["Item 1", "Item 2", "Item 3"]. To select Item 1 by default, for the classic control, you set the Default property to "Item 1". For the modern control, you have to set the DefaultSelectedItems property to ["Item 1"]
Some of the properties to style the date picker are gone like LineHeight. This might seem a bit crippling to some makers, but trust me, losing some of these properties has been a blessing for me. Lack of these properties helps ensure that the controls look neat and clean.
Using modern Radio group control
The one property that some of the modern controls have lost in comparison to their classic versions is the Reset property. I do miss it at times. I used that property to reset controls to their default values using a variable. Now that the Reset property isn't there anymore, you can still reset controls by using the Reset function. To learn more about the Reset function, click here.
Stay tuned for the remaining modern controls!
To read the official documentation of modern controls, click here.