How to register for the Drop event in the Details grid of a Master/Details grid

I'm trying to register for the Drop event in a master/details grid to be warned when a row is dropped on a detail grid.

If I try to do this as follows:

            dataGrid.RowDragDropController.Drop += OnRowDropMaster;

            grdSubOrders.RowDragDropController.Drop += OnRowDropChild;

then OnRowDropMaster is called when dropping on a master row, but OnRowDropChild is never called.

(dataGrid is the main grid, grdSubOrders is the Details view grid definition)

See the example attached.

If you run it, then expand the first 2 lines and then drag a subrecord on the second line to the subrecords on the first line you'll see that the record moves on the grids, but the drop event is never called.




Attachment: WpfSyncfusionGridTest_627011fb.zip

4 Replies 1 reply marked as answer

SB Sweatha Bharathi Syncfusion Team May 31, 2024 02:14 PM UTC

Hi Stefan Cuypers ,

We have checked the reported issue “Row drag and drop events are not properly considered for the Master-Details View DataGrid” on our end and it is confirmed as a defect. And We have logged a bug. We will fix this issue and include it in our NuGet release Which is scheduled on June 25, 2024.

You can track the status of this report through the following feedback link,


Feedback Link: Row drag and drop events are not properly considered for the Master-Details View DataGrid in WPF | Feedback Portal (syncfusion.com)


Note: The provided feedback link is private, and you need to log in to view this feedback.


We will let you know once it is released. We appreciate your patience until then.

Disclaimer: Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.




MS Malini Selvarasu Syncfusion Team June 25, 2024 01:09 PM UTC

Hi Stefan Cuypers ,

We would like to let you know that Essential Studio Weekly NuGet packages (v26.1.39) has been published in nuget.org with the fix for the issue “Row drag and drop events are not properly considered for the Master-Details View DataGrid”. Please let us know if you have any concerns in this.
Root Cause Details:
We missed the properties of the RowDragDropController class while copying from ParentDataGrid to DetailsViewDataGrid. This issue will now be resolved by copying the RowDragDropController class to the DetailsViewDataGrid.
Regards,
Malini Selvarasu

Marked as answer

SC Stefan Cuypers June 26, 2024 05:36 AM UTC

Hi Malini Selvarasu,

Thanks a lot for the excellent support. It indeed works with the latest version!

Regards,

Stefan Cuypers




JS Jayashree Suresh Anand Syncfusion Team June 26, 2024 09:56 AM UTC

Hi Stefan Cuypers,

You're welcome. Thank you for your valuable feedback and appreciation towards our support. We are glad it works for you in the latest version. Please open a new forum if you encounter any new issues; indeed, we are delighted to help you.

Regards,

Jayashree 


Loader.
Up arrow icon