Drag and Copy between 2 ListViews

Hi

I need a sample about Listview component.

there 2 listview on page,  
    - I want to drag item from LV1 to LV2 as a copy (not drag drop - LV1 still keep it)
    - I want to reorder items in LV2 as the same time.

How can I make it ? 
Can you give me any sample for it ?

Thanks
HB

PS : if you need you can give a sample DataGrid instead of Listview. 

1 Reply 1 reply marked as answer

SP Sowmiya Padmanaban Syncfusion Team October 21, 2020 08:03 AM UTC

Hi Hamdi Boyaci,  
 
Greetings from Syncfusion support. 
 
Query 1- Drag and Drop in Listview. 
 
ListView component does not contain drag and drop support. We have ListBox component similar to ListView component. Refer the below links for ListBox component. 
 
 
 
Query 2- Drag and Drop in DataGrid. 
 
1.     I want to drag item from LV1 to LV2 as a copy (not drag drop - LV1 still keep it) 
 
Grid’s drag and drop will behave in a cut and paste way. The row from LV1 will be removed and it will be added in LV2. We don’t provide copy and paste way in our drag and drop feature. Please find the online demo below, 
 
 
2.     I want to reorder items in LV2 as the same time 
 
It is not possible to enable drag and drop within Grid feature in Grid(LV2), when drag and drop between Grid feature is enabled in Grid(LV2).  
 
At a time, either drag and drop within Grid or drag and drop between Grids can only be enabled in a single Grid(LV2). It is not feasible to enable both these feature in a single Grid(LV2) 
 
 
 
Please let us know, if you need any further assistance. 
 
Regards,  
Sowmiya.P 


Marked as answer
Loader.
Up arrow icon