Skip to main content

GroupCollection

Namespace: Wisej.Web.Ext.DevExtreme

Assembly: Wisej.Web.Ext.DevExtreme (4.1.0.0)

Represents the collection of Group objects displayed by a dxKanban control.

public class GroupCollection : ObservableCollection<Group>

The collection is created by the dxKanban control and is returned by its Groups property. Adding or removing groups updates the board in the browser.

Constructors​

Instance member GroupCollection()​

Constructs a new instance of the GroupCollection class that is not attached to a dxKanban control.

A collection created with this constructor has no owner and groups cannot be added to it. To manage the groups of a board use the collection returned by the Groups property.

Example:

The following example shows that a standalone collection is empty, and that the groups of a board are added to the collection created by the board.

var standalone = new dxKanban.GroupCollection();
int count = standalone.Count; // 0

var kanban = new dxKanban();
kanban.Groups.Add(new dxKanban.Group { ID = "todo", GroupName = "To Do" });

Methods​

Instance member AddRange(groups)​

Adds the specified groups to the end of the collection.

ParameterTypeDescription
groupsIEnumerable<Group>The groups to add to the collection.

The groups are added between calls to BeginUpdate and EndUpdate on the dxKanban control that owns the collection.

Example:

The following example adds three columns to the board.

this.dxKanban1.Groups.AddRange(new[]
{
new dxKanban.Group { ID = "todo", GroupName = "To Do" },
new dxKanban.Group { ID = "doing", GroupName = "In Progress" },
new dxKanban.Group { ID = "done", GroupName = "Done" }
});

Protected member ClearItems()​

Protected member InsertItem(index, item)​

ParameterTypeDescription
indexInt32
itemGroup

Protected member RemoveItem(index)​

ParameterTypeDescription
indexInt32