Select items by panning on the grid

I try to select items by panning on a listview.

I can't achieve it.

Can you halp me?

I try to use touch gestures ...

But nothing works.

Thanks,

11 Replies

LN Lakshmi Natarajan Syncfusion Team May 4, 2020 08:57 AM UTC

Hi Alexis, 
 
Thank you for using Syncfusion products. 
 
We have checked the reported query “Select items by panning on the grid” from our end and we could not reproduce the reported issue in our simple sample. 
 
Can you please let us know if you are using custom gestures for Grid inside ItemTemplate? If yes, then we would like to inform you that when custom gesture is handled in ListView ItemTemplate, then the touch will be handled by the child element and ListView does not get the touch notification to process the selection. In this case, you can manually set the SelectedItem for ListView. Please refer the following document for more reference, 
 
Can you please ensure any interactable controls like ScrollView added as the child of ItemTemplate? If yes, then as mentioned above, the touch will be handled by the ScrollView itself. To resolve this issue, you can set InputTransparent as True for the ItemTemplate child. 
 
Can you please ensure whether the reported issue occurs in iOS 13.4? If yes, we would like to inform you that the reported issue is a framework level. Kindly refer the following issue report for further updates regarding the same,  
  
 
Also, as mentioned in this following comment, Please update to latest stable in Visual Studio for Mac (v8.5.2) and Windows (v16.5.3) to resolve the issue. 
 
Please let us know if this helps. If not, please revert us back with the following details which would be helpful for us to check on it and provide you the solution as soon as possible, 
  • Replication procedure
  • Share ListView related templates
  • Device configuration details
 
Regards, 
Lakshmi Natarajan 
 



AL Alexis May 4, 2020 09:54 AM UTC

Thanks for your help.

Could you please share your sample please?


LN Lakshmi Natarajan Syncfusion Team May 4, 2020 12:48 PM UTC

Hi Alexis, 
 
Thank you for the update. 
 
We have attached the tested sample in the following link, 
 
 
Please check the sample and let us know if you still facing the same issue? If not, please modify our sample to reproduce the reported issue and revert us back. 
 
Regards, 
Lakshmi Natarajan 



AL Alexis May 4, 2020 03:23 PM UTC

Hi,

Thanks for the reply.

I am sorry. I think I have not been clear enough on my request and I try to do.

I have a grid layout with two columns and 10 rows.

I want to do a multiselect by dragging my finger on the items.

If my finger enter in the items it is selected and if I reeenter it's unselected.

My issue is that the panning effect is working when I start on the element in the list.

Maybe my request is too complicated. But I can't achieve it.

Is it clearer?


LN Lakshmi Natarajan Syncfusion Team May 5, 2020 05:18 AM UTC

Hi Alexis, 
 
Sorry for the inconvenience caused. 
 
We have checked the reported query “Selection in SfListView” from our end. We would like to inform you that you can achieve your requirement using GridLayout in SfListView.  
 
#Regarding I want to do a multiselect by dragging my finger on the items. 
 
We would like to let you know that ListView will select the Item when clicking the item. By default, panning will be handled by swiping if the AllowSwiping is True. You can select the item by clicking on the ListViewItem. 
 
Please refer the following code snippet to achieve your requirement, 
 
Xaml: Define GridLayout with SpanCount 2 for ListView. Set SelectionMode as Multiple to Select and DeSelect the ListViewItem. 
 
<syncfusion:SfListView x:Name="listView" ItemSpacing="1" SelectionMode="Multiple" AutoFitMode="Height" ItemsSource="{Binding contactsinfo}"> 
        <syncfusion:SfListView.LayoutManager> 
            <syncfusion:GridLayout SpanCount="2"/> 
        </syncfusion:SfListView.LayoutManager> 
        ... 
</syncfusion:SfListView> 
 
We have attached the sample based on your requirement and attached video in the following link, 
 
You can also refer our user guidance document regarding the same from the following link, 
 
Please check the sample and let us know if this helps. 
 
Regards, 
Lakshmi Natarajan 
 



AL Alexis May 5, 2020 08:09 PM UTC

Hi,

Thanks for your reply.

My goal is not to do the multiselect by tapping on each item.

It's to multiselect by drag and select. Maybe it's a better way to explain.

You can find what I try to achieve on this video: https://youtu.be/b7If77aMMxw?t=56


Can you see what I try to achieve. 

Sorry for my english if I am unclear.


LN Lakshmi Natarajan Syncfusion Team May 6, 2020 01:08 PM UTC

Hi Alexis, 
 
Thank you for the update. 
 
We have checked the reported query “Drag select support in SfListView” from our end. We would like to inform you that, as of now, SfListView does not have the support to drag select the ListViewItems. We are currently working for the possibilities to achieve the reported scenario in sample level. We will analyze further and update you the details on 12 May, 2020. We appreciate your patience until then. 
 
Regards, 
Lakshmi Natarajan 
 



CS Chandrasekar Sampathkumar Syncfusion Team May 12, 2020 04:12 PM UTC

Hi Alexis, 
Sorry for the inconvenience caused. 
Due to complexity we are not able to prepare sample as promised. We will analyse further and update you the details on May 13, 2020. We appreciate your patience until then. 
Regards, 
Chandrasekar Sampathkumar 



LN Lakshmi Natarajan Syncfusion Team May 13, 2020 06:47 PM UTC

Hi Alexis, 
 
Sorry for the inconvenience caused. 
 
We regret to inform you that, as of now, SfListView does not have the support for drag selection. We have checked the possibilities to achieve the requirement in sample level, but could not achieve the same in sample level. 
 
Please let us know if you need further assistance. 
 
Lakshmi Natarajan 



AL Alexis May 16, 2020 11:24 AM UTC

Ok thanks for your time. 


LN Lakshmi Natarajan Syncfusion Team May 18, 2020 04:25 AM UTC

Hi Alexis, 
 
Thank you for the update. Please let us know if you need any further update. As always we are happy to help you out. 
 
Lakshmi Natarajan 


Loader.
Up arrow icon