Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.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