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.
- C#
- VB.NET
public class GroupCollection : ObservableCollection<Group>
Public Class GroupCollection
Inherits ObservableCollection(Of 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
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
AddRange(groups)
Adds the specified groups to the end of the collection.
| Parameter | Type | Description |
|---|---|---|
| groups | IEnumerable<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" }
});
ClearItems()
InsertItem(index, item)
RemoveItem(index)
| Parameter | Type | Description |
|---|---|---|
| index | Int32 |