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

Radio Button Column should be non-collapsible

0 Answers 57 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
yogeshwar
Top achievements
Rank 1
yogeshwar asked on 21 Jul 2020, 08:07 AM

in attached screenshot, I need to make all rows expanded always, so that I can select only radio button at a time. as of I now if I select a row and collapse it, it allows to choose another value from expanded rows. which cause application to crash, I need to keep only one selected radio button value from all available rows.

code for radio button below:

 

<StackPanel Orientation="Horizontal">
                                                <RadioButton                                                  
                                                    Margin="0,0,10,0"
                                                    VerticalAlignment="Center"
                                                    GroupName="IndexedValue"
                                                    IsChecked="{Binding IsIndexedValue}" ToolTip="Select Only 1 value for indexing">
                                                    <RadioButton.Visibility>
                                                        <Binding                                                           
                                                            Converter="{StaticResource IsIndexedValueSelectedToVisibilityConverter}"
                                                            Path="DataContext.IsIndexedValueSelected" 
                                                            Source="{x:Reference ParameterValueListView}"/>
                                                    </RadioButton.Visibility>
                                                </RadioButton>

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
yogeshwar
Top achievements
Rank 1
Share this question
or