ItemCollection
Namespace: Wisej.Web.Ext.DevExtreme
Assembly: Wisej.Web.Ext.DevExtreme (4.1.0.0)
Represents the collection of Item objects in a Group of the Kanban board.
- C#
- VB.NET
public class ItemCollection : ObservableCollection<Item>
Public Class ItemCollection
Inherits ObservableCollection(Of Item)
The collection is created by the Group and is returned by its Items property. When the group belongs to a dxKanban control, adding or removing items updates the board in the browser.
Constructors
ItemCollection()
Initializes a new instance of ItemCollection.
Methods
AddRange(items)
Adds the specified items to the end of the collection.
| Parameter | Type | Description |
|---|---|---|
| items | IEnumerable<Item> | The items to add to the collection. |
When the group belongs to a dxKanban control, the items are added between calls to BeginUpdate and EndUpdate, so the board is updated only once.
Example:
The following example adds two items to the first group of the board.
var group = this.dxKanban1.Groups[0];
group.Items.AddRange(new[]
{
new dxKanban.Item { ID = "21", Title = "Prepare the demo", Description = "Marco", Color = Color.SteelBlue },
new dxKanban.Item { ID = "22", Title = "Call the customer", Description = "Anna", Color = Color.Orange }
});
InsertItem(index, item)
RemoveItem(index)
| Parameter | Type | Description |
|---|---|---|
| index | Int32 |