Hi,
we have a quality-management page with a listview as its content. It gets filled dynamically by database. If a Yes/No Question is in the List the default value is null. The user has to check "Yes" or "No" and then the result is saved in ResultBool.
We want to bind the value to the viewmodel (ObservableCollection) but the value will not change. We want to stay the value in if the user leaves the page and open it again so the binding is required. We made it via SfRadioGroup_CheckedChanged but its not checked anymore if the user re-open the page because of the missing binding.
Can you tell me how we solve this issue? Thanks!
<ListView x:Name="listviewPruefungen"
ItemsSource="{Binding Pruefungen}" HasUnevenRows="True" RowHeight="150" SelectionMode="None">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<Frame>
<StackLayout>
<StackLayout Orientation="Horizontal">
<buttons:SfRadioGroup IsVisible="{Binding Datatype, Converter={StaticResource SwitchConverter}}" Orientation="Horizontal" Spacing="30">
<buttons:SfRadioButton x:Name="radioBtnYes" Text="Ja" FontSize="16" IsChecked="{Binding ResultBool.Value,Mode=TwoWay}"/>
<buttons:SfRadioButton x:Name="radioBtnNo" Text="Nein" FontSize="16" />
</buttons:SfRadioGroup>
</StackLayout>
</StackLayout>
</Frame>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
Regards
Maria