RadzenDataGrid with row based drag&drop #100

Closed
opened 2026-01-29 17:31:32 +00:00 by claunia · 3 comments
Owner

Originally created by @MPapst on GitHub (May 24, 2021).

Is your feature request related to a problem? Please describe.
I am facing a requirement where it is necessary to drag and drop rows of data grids between data grids and inside the same grid.
Dragging rows (objects) between data grids is not an issue at all, as I am able to define the grid itself as drop area.
Dragging rows inside a datagrid is impossible "from the outside", as I did not find a way to hack it into the rows.

Describe the solution you'd like
This may be solved using the following:

  • Create an AllowDragDrop property on the RadzenDataGrid
  • Create an IsDragHandle property on RadzenDataGridColumn
  • Wrap the grid in a DragAndDropService and provide a proper interface to handle drags and drops in the data source

Describe alternatives you've considered
A complete new grid would be necessary to achieve that feature.

Additional context

  • This may have impact on the new virtualization feature, which I did not yet test.
  • This may have impact on a filtered grid

I wanted to discuss the possibility before doing an implemenetation and providing a PR.

Originally created by @MPapst on GitHub (May 24, 2021). **Is your feature request related to a problem? Please describe.** I am facing a requirement where it is necessary to drag and drop rows of data grids between data grids and inside the same grid. Dragging rows (objects) between data grids is not an issue at all, as I am able to define the grid itself as drop area. Dragging rows inside a datagrid is impossible "from the outside", as I did not find a way to hack it into the rows. **Describe the solution you'd like** This may be solved using the following: * Create an AllowDragDrop property on the RadzenDataGrid * Create an IsDragHandle property on RadzenDataGridColumn * Wrap the grid in a [DragAndDropService ](https://www.radzen.com/blog/blazor-drag-and-drop/) and provide a proper interface to handle drags and drops in the data source **Describe alternatives you've considered** A complete new grid would be necessary to achieve that feature. **Additional context** * This may have impact on the new virtualization feature, which I did not yet test. * This may have impact on a filtered grid I wanted to discuss the possibility before doing an implemenetation and providing a PR.
Author
Owner

@MPapst commented on GitHub (May 26, 2021):

@akorchev if you could give me feedback, I could start with a first implementation proposal

@MPapst commented on GitHub (May 26, 2021): @akorchev if you could give me feedback, I could start with a first implementation proposal
Author
Owner

@akorchev commented on GitHub (Jun 2, 2021):

I think it would be easier to use the Template of the column and add some component which serves as the drag handle. For now I don't think this should be a built-in feature for the RadzenDataGrid.

@akorchev commented on GitHub (Jun 2, 2021): I think it would be easier to use the Template of the column and add some component which serves as the drag handle. For now I don't think this should be a built-in feature for the RadzenDataGrid.
Author
Owner

@MPapst commented on GitHub (Jun 6, 2021):

Understood.

I think I found a way to implement it without modifying the underlying RadzenDataGridRow. Its a bit like a workaround but will hopefully work.

@MPapst commented on GitHub (Jun 6, 2021): Understood. I think I found a way to implement it without modifying the underlying RadzenDataGridRow. Its a bit like a workaround but will hopefully work.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#100