Skip to main content

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.

public class ItemCollection : ObservableCollection<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​

Instance member ItemCollection()​

Initializes a new instance of ItemCollection.

Methods​

Instance member AddRange(items)​

Adds the specified items to the end of the collection.

ParameterTypeDescription
itemsIEnumerable<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 }
});

Protected member InsertItem(index, item)​

ParameterTypeDescription
indexInt32
itemItem

Protected member RemoveItem(index)​

ParameterTypeDescription
indexInt32