KanbanCardMoveEventArgs
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.2.0.0)
Describes a proposed or completed move. Cancel is honored only by CardMoving.
- C#
- VB.NET
public class KanbanCardMoveEventArgs : CancelEventArgs
Public Class KanbanCardMoveEventArgs
Inherits 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
KanbanCardMoveEventArgs(item, oldColumn, column, index)
Initializes an immutable move request with a mutable cancellation flag.
| Name | Type | Description |
|---|---|---|
| item | Object | Bound record. |
| oldColumn | KanbanColumn | Source column, or null for an unmapped record. |
| column | KanbanColumn | Destination column. |
| index | Int32 | Zero-based destination position after removing the moving card. |
Properties
Column
KanbanColumn: Gets the requested destination column.
Index
Int32: Gets the zero-based destination position after removal of the moving item.
Item
Object: Gets the source record.
OldColumn
KanbanColumn: Gets the original column.