Back to Devexpress

KanbanGroup.DropTargetGroups Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-tile-dot-kanbangroup-bc85016d.md

latest3.2 KB
Original Source

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.v25.2.dll

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

Declaration

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

Property Value

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

  • C#

  • VB.NET

csharp
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);
vb
Dim groupDoing As KanbanGroup = New KanbanGroup() { GroupValue = TaskStatus.Doing }
Dim groupTesting As KanbanGroup = New KanbanGroup() { GroupValue = TaskStatus.Testing }
Dim groupDone As KanbanGroup = New KanbanGroup() { GroupValue = TaskStatus.Done }

groupDoing.DropTargetGroups.Add(groupTesting)
groupTesting.DropTargetGroups.AddRange(New KanbanGroup() { groupDoing, groupDone })
groupDone.DropTargetGroups.Add(groupDone)

See Also

KanbanGroup Class

KanbanGroup Members

DevExpress.XtraGrid.Views.Tile Namespace