Grid with Hyperlink column using Drag and Drop

0 Answers 144 Views
Grid
Van
Top achievements
Rank 1
Iron
Iron
Van asked on 27 May 2022, 08:08 PM

We have a couple of grids in which we use drag and drop to move content between the grids.  However in a recent update, we needed to add a hyperlink column to the grids.  The problem is when you want to drag and you click on the hyperlink column, it does not select and drag the row, it appears to try and drag a link(and no drag/drop events fire).  Of course we would like the single click to continue to launch a detail page from hyperlink, but click and drag to move the row to the other grid. 

Is is possible to distinguish between a single click to launch the hyperlink content,  but also recognize the click and hold for dragging to move the row to the other grid ???

 

Attila Antal
Telerik team
commented on 01 Jun 2022, 12:14 PM

Hi Van,

I am afraid this scenario is not supported. The Drag and Drop functionality only kicks in when dragging by the row of elements that do not contain Form Controls (e.g. input, select, etc.) or interactive elements (e.g. Buttons, Hyperlinks, etc.).

You can instruct the users to drag the row or add a GridDragDropColumn to the Grid which will serve as a Drag handle.

Van
Top achievements
Rank 1
Iron
Iron
commented on 01 Jun 2022, 12:32 PM

Hi Attila,

Thank you for the response.

I was able to emulate the required behavior by changing the hyperlink column to a GridBoundColumn and then emulating the behavior by looking at rows & columns the user clicks.   The down side - this results in confusing coordination between the event handlers - it works, just isn't very maintanable even when heavily documented.

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Van
Top achievements
Rank 1
Iron
Iron
Share this question
or