sfListview Drag And Drop UWP with mouse not working

Hello,

I created a test project using sfListview. I enabled Drag And Drop OnHold. 
On android I can reorder the items.
On UWP on my PC using mouse it does not work. 

Is sfListview Drag And Drop supported on UWP using a mouse?

Sample code for testing:
https://drive.google.com/open?id=1HdzTzAJJXvF4-v7r18VnSOmWunfn0Vjf

Regards,
Balázs

1 Reply

MK Muthu Kumaran Gnanavinayagam Syncfusion Team December 14, 2017 12:07 PM UTC

Hi Gyori,   
   
We regret to inform you that SfListView do not have support to “Perform the drag and drop action by holding mouse button”. Since there are no long pressed events (like Holding event in touch) for the mouse in UWP framework. So SfListView.DragStartMode property does not work with ‘OnHold’ value in UWP platform. We have already considered it as a feature and added it into our feature request list.   
    
However you can use ‘OnDragIndicator’ which allows you to perform drag and drop by loading the DragIndicatorView within ItemTemplate   
    
If you want to use both OnHold and OnDragIndicator values in your application, you can set both the values to DragStartMode property like below codes.    
 
Code Example[C#]:    
listView.DragStartMode = DragStartMode.OnHold | DragStartMode.OnDragIndicator;    
    
Code Example[XAML]:    
<syncfusion:SfListView x:Name="listView"    
                       ItemSize="60"    
                       ItemsSource="{Binding ToDoList}"    
                       DragStartMode="OnHold,OnDragIndicator"    
                       SelectionMode="None">    
    
For your reference, we have attached the working sample video along with the sample in the link below.    
    
   
Please let us know if you require further assistance.   
   
Regards,   
G.Muthu kumaran.   


Loader.
Up arrow icon