All docs
V20.1
20.2 (EAP/Beta)
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

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.v20.1.dll

Declaration

[Browsable(false)]
[DXCategory("Appearance")]
public List<KanbanGroup> DropTargetGroups { get; }
<Browsable(False)>
<DXCategory("Appearance")>
Public ReadOnly Property DropTargetGroups As List(Of KanbanGroup)

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