Skip to main content

KanbanGroup.DropTargetGroups Property

The collection of groups that can accept tiles from the current group during drag-and-drop operations.

Namespace: DevExpress.XtraGrid.Views.Tile

Assembly: DevExpress.XtraGrid.v23.2.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

[Browsable(false)]
[DXCategory("Appearance")]
public List<KanbanGroup> DropTargetGroups { get; }

Property Value

Type Description
List<KanbanGroup>

A collection of groups that can accept tiles dragged from the current group.

Remarks

When tile drag-and-drop is enabled (see TileView.OptionsDragDrop.AllowDrag and KanbanGroup.AllowItemDrag), a user can drag tiles between and within any groups.

The DropTargetGroups property allows you to limit the groups to which tiles can be moved. If this collection is empty, tiles from the current group can be moved to any group.

The following example uses the DropTargetGroups property to specify tile drag-and-drop rules.

  • Tiles from the Doing group can be moved to the Testing group.
  • Tiles from the Testing group can be moved to the Doing and Done group.
  • Tiles from the Done group can be moved only within this group.
KanbanGroup groupDoing = new KanbanGroup() { GroupValue = TaskStatus.Doing };
KanbanGroup groupTesting = new KanbanGroup() { GroupValue = TaskStatus.Testing };
KanbanGroup groupDone = new KanbanGroup() { GroupValue = TaskStatus.Done };

groupDoing.DropTargetGroups.Add(groupTesting);
groupTesting.DropTargetGroups.AddRange(new KanbanGroup[] { groupDoing, groupDone });
groupDone.DropTargetGroups.Add(groupDone);
See Also