Hi Ronak,
Thanks for contacting Syncfusion support.
We have checked the reported query from our side. You can load items in SfListView GridLayout by defining SpanCount which places the items in horizontal direction as you mentioned, and you have to define listview with Selection Mode as `Multiple` in order to select items. We have attached the sample for your reference, please refer the sample from below link:
<syncfusion:SfListView x:Name="listView" SelectionMode="Multiple"
SelectedItems="{Binding SelectedItems}"
ItemsSource="{Binding contactsinfo}">
</syncfusion:SfListView>
|
You can bind the `SelectedItems` to ListView in xaml page by adding the items into SelectedItems in ViewModel as added in sample.
public class ContactsViewModel : INotifyPropertyChanged
{
public ObservableCollection<object> SelectedItems { get; set; }
public ContactsViewModel()
{
SelectedItems = new ObservableCollection<object>();
SelectedItems.Add(contactsinfo[0]);
SelectedItems.Add(contactsinfo[1]);
}
} |
To know more about Selection in SfListView, please refer our below documentation.
Can you please check and let us know whether provide sample meets your requirement. If not, please explain your use case in detail so that we can able to provide the better solution at our end.
Regards,
Deivaselvan