We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to manage drag&drop from one SfDataGrid to another

Thread ID:

Created:

Updated:

Platform:

Replies:

131497 Jul 13,2017 07:37 AM UTC Aug 25,2017 05:56 AM UTC WPF 7
loading
Tags: SfDataGrid
Silvio
Asked On July 13, 2017 07:37 AM UTC

Hi,

I have on a window two SfDataGrid each binded to a different Collection datasource of the same base type.
I'd like to implement a drag&drop of records from one grid to the other.
The user should be able to select some rows in the first datagrid and drag&drop them to the second datagrid.
Is it possible to implement such a functionality ?
Have you some example that can show me how to implement it ?
Thank you.

Silvio

Srinivasan Vasu [Syncfusion]
Replied On July 14, 2017 06:28 AM UTC

Hi Silvio,
 
Thank you for contacting Syncfusion support. 
We have analyzed on your query and you can drag and drop the rows by customizing GridSelectionController class and set the instance of that customized GridSelectionControllerExt class to SfDataGird.SelectionController and you can drag and drop the row using RowHeader. We have prepared a sample based on your requirement and attached in the below sample link 
 
Regards,
Srinivasan 


Silvio
Replied On July 15, 2017 09:35 AM UTC

Thank you Srinivasan,


it is exactly what I needed. Thank you again !


Silvio


Srinivasan Vasu [Syncfusion]
Replied On July 15, 2017 05:52 PM UTC

Hi Silvio, 
  
Thanks for your update. 
  
Please let us know if you need further assistance on this. 
  
Regards, 
Srinivasan 


Silvio
Replied On August 22, 2017 09:37 AM UTC

Dear Srinivasan,


with your example it's all ok, but I have now a little extra problem.

In the dropped sfDataGrid I have a GridHyperlinkColumn column beside other columns.

I manage this column using the SfDataGrid.CurrentCellRequestNavigate event in order to navigate to another form of my app when the user clicks on cell of that column.

As soon as I substitute the default grid controller with GridSelectionControllerExt as you've done in your example, no SfDataGrid.CurrentCellRequestNavigate event is recalled yet when the user clicks on the hyperlinks.

What can I do to solve this little problem ?


Silvio


Balamurugan Rajaraman [Syncfusion]
Replied On August 23, 2017 06:30 PM UTC

Hi Silvio 
 
We have checked your query “CurrentCellRequestNavigate is not re-triggered in the dropped DataGrid”. We are not able to reproduce the reported issue its working fine in our side. we have attached the tested sample for your reference. Could you please revert us the by modifying the provided sample based upon your application scenario to reproduce the reported issue in our side. It will be greatly helpful for us to analyze further. 
 
Please find the tested video and sample from the below link. 
 
 
 
Regards, 
Balamurugan R 


Silvio
Replied On August 24, 2017 08:33 AM UTC

Thank you Balamurugan,

I see how in your example everything works fine.

Probably my example is more complicated and there are other changes I have made.

If I'm able to isolate the problem in a simple way that can be evaluatable for you, I'll send you an example.

Meanwhile thank you for your help.


Silvio


Balamurugan Rajaraman [Syncfusion]
Replied On August 25, 2017 05:56 AM UTC

Hi Silvio 
 
Thanks for the update, 
 
We will wait to hear from you. 
 
Regards, 
Balamurugan R 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;