BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
Hi Benjamin,
Thank you for using Syncfusion products.
We have checked the reported query from our end. The mentioned issue occurs because SfCheckBox will take the focus so that SfListView's SelectionChanged event will not be fired. So you can use StateChanged event in SfCheckBox to achieve your requirement. Please refer the following code snippet for more reference,
Xaml:
<buttons:SfCheckBox Text="{Binding ContactName}" StateChanged="SfCheckBox_StateChanged" IsChecked="{Binding IsDone}"> buttons:SfCheckBox> |
C#:
private void SfCheckBox_StateChanged(object
sender, Syncfusion.XForms.Buttons.StateChangedEventArgs e) { var checkBox = (sender as SfCheckBox).BindingContext as Contacts; lblSelectedAssignee.Text += "selectionChanged|"; ObservableCollection <object>
items = new ObservableCollection<object>(); if (e.IsChecked ==
true) { listAssignee.SelectedItems.Add(checkBox);
items = listAssignee.SelectedItems; }
else if(e.IsChecked == false) { listAssignee.SelectedItems.Remove(checkBox);
items = listAssignee.SelectedItems; } for
(int i = 0; items.Count > i; i++) {
var item = items[i] as Contacts; item.IsDone =
true; selectAssignee += "" + item.ContactName + "|";
if (i == items.Count - 1) lblSelectedAssignee.Text += lblSelectedAssignee.Text + item.ContactName + "
. ";
else lblSelectedAssignee.Text += lblSelectedAssignee.Text + item.ContactName + "
, "; } entryAssignee.Text = selectAssignee; }
|
We have modified the sample based on your requirement
and we have attached the sample in the following link,
Sample Link : SfListViewSample
Please check the sample and let us know if you still facing the same issue? If not, please modify our sample and revert us back. It will be helpful for us to check on it and provide you the solution at the earliest.
Regards,
Chandrasekar Sampathkumar