New to Telerik UI for BlazorStart a free 30-day trial

The event arguments for the OnCardMove event.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Type Parameters:

TItem

The type of the card data items in CardData.

Syntax:

C#
public class TaskBoardCardMoveEventArgs<TItem> : EventArgs

Inheritance: objectEventArgsTaskBoardCardMoveEventArgs<TItem>

Inherited Members EventArgs.Empty

Constructors

C#
public TaskBoardCardMoveEventArgs()
C#
public TaskBoardCardMoveEventArgs(TItem item, string oldStatus, string newStatus, int oldIndex, int newIndex)
Parameters:itemTItemoldStatusstringnewStatusstringoldIndexintnewIndexint

Properties

Set to true to prevent the move from completing and keep the card in its original position.

C#
public bool IsCancelled { get; set; }

Item

TItem

The moved card's data item. Update its CardStatusField and CardIndexField in your data source using NewStatus and NewIndex.

C#
public TItem Item { get; set; }

The zero-based card position within its column after the move.

C#
public int NewIndex { get; set; }

The ColumnStatusField value of the destination column.

C#
public string NewStatus { get; set; }

The zero-based card position within its column before the move.

C#
public int OldIndex { get; set; }

The ColumnStatusField value of the source column.

C#
public string OldStatus { get; set; }