Skip to content

DevExpress-Examples/blazor-grid-drag-and-drop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blazor Grid - Incorporate Drag and Drop Support

The DevExpress Blazor Grid supports drag-and-drop operations.

Drag between two grids

Use the following API members to activate this feature for your Grids:

When a user drops rows, the ItemsDropped event fires. In its handler, update the data source: insert rows at the drop position and remove them from the initial position, if required.

Reorder Rows in a Grid

If you want to let users reorder rows, set the AllowDragRows property to true. You can test this usage scenario on the Reorder page.

Drag Rows Between Components

To let users drag rows between components, do the following:

The DropTargetMode property specifies drop position indication style:

  • A specific location defined by the TargetItem and DropPosition properties.
  • The entire data area. You need to implement custom insertion logic (for example, if your data is sorted or grouped) in the ItemsDropped event handler.

You can test this usage scenario on the Between page.

Files to Look At

Documentation

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)