Skip to main content
Version: 4.2

KanbanCardMoveEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

Describes a proposed or completed move. Cancel is honored only by CardMoving.

public class KanbanCardMoveEventArgs : CancelEventArgs

Derives from or implements CancelEventArgs.

Use Item, OldColumn, Column to access the event data.

Example:

board.CardMoving += (sender, e) => e.Cancel = e.Column.Value == "done" && !CanComplete(e.Item);

Constructors​

Instance member KanbanCardMoveEventArgs(item, oldColumn, column, index)​

Initializes an immutable move request with a mutable cancellation flag.

NameTypeDescription
itemObjectBound record.
oldColumnKanbanColumnSource column, or null for an unmapped record.
columnKanbanColumnDestination column.
indexInt32Zero-based destination position after removing the moving card.

Properties​

Instance member Column​

KanbanColumn: Gets the requested destination column.

Instance member Index​

Int32: Gets the zero-based destination position after removal of the moving item.

Instance member Item​

Object: Gets the source record.

Instance member OldColumn​

KanbanColumn: Gets the original column.