Preview Drop - drag&drop between gridview

1 Answer 111 Views
GridView
Fabrice
Top achievements
Rank 2
Iron
Iron
Fabrice asked on 20 Apr 2022, 01:15 PM

Hi,

 

I'm using what you recommand to dragdrop between two gridview.

RowDragHint doesn"t show up when dragging from a gridview to another. Is there anything I can do, with a custom dragDropBehavior to change the way the previewDrop is rendered.

Expected Drop Preview

Here's what I would like to display when I hover the right gridview


What's truly happening... sadly 😅

There is no rowhint when hovering the gridview

 

The documentation I used:

https://docs.telerik.com/devtools/winforms/controls/gridview/rows/drag-and-drop

 

Thanks in advance.

Best regards

1 Answer, 1 is accepted

Sort by
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 21 Apr 2022, 10:52 AM

Hello, Fabrice,  

The TableElement.RowDragHint specifies the image line that should be shown for the drop row indication. However, it is painted only in case of a drag and drop operation within the same RadGridView since it is drawn by the source grid's GridRowDragDropBehavior. In this case the target grid's GridRowDragDropBehavior is not instantiated at all and it can't render the hint before/after the row.

However, I have prepared a sample project for your reference which result is illustrated below. Please give the attached project a try and see how it works on your end:

It seems to be a reasonable request to show the drop row line always no matter what is the target RadGridView.

I have logged it in our feedback portal by creating a public thread on your behalf. You can track its progress, subscribe for status changes and add your comments on the following link - feedback item.

I have also updated your Telerik points.

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
GridView
Asked by
Fabrice
Top achievements
Rank 2
Iron
Iron
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or