Class
TaskBoardCardState

Holds the runtime view-state of a single board card, produced from a CardData item via TaskBoardCardDescriptor. Stores the display Index and Status assigned and managed by the board at runtime.

Id uses an init setter for serialization support but must not be changed at runtime. Index and Status have public setters so consumers and SetStateAsync(TaskBoardState<TColumn>) can restore card positions.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

cs-api-definition
public class TaskBoardCardState

Inheritance: objectTaskBoardCardState

Constructors

TaskBoardCardState()

Initializes a new instance of the TaskBoardCardState class. Required for deserialization scenarios (e.g. restoring state after page reload). Set at least Id so that SetStateAsync(TaskBoardState<TColumn>) can match this entry to a live card.

Declaration

cs-api-definition
public TaskBoardCardState()

Properties

Id

Gets the unique identifier of the card. Matched against each card's CardIdField value to restore the card's position. Used by SetStateAsync(TaskBoardState<TColumn>) to match saved state entries to live cards. Set only during initialization or deserialization; changing at runtime is not supported.

Declaration

cs-api-definition
public object Id { get; init; }

Property Value

object

Index

Gets or sets the zero-based display position of this card within its column. Lower values appear higher in the column. Updated when the user reorders cards.

Declaration

cs-api-definition
public int Index { get; set; }

Property Value

int

Status

Gets or sets the status value that determines which column the card belongs to. Matched against the column's Status to assign the card to a column.

Declaration

cs-api-definition
public string Status { get; set; }

Property Value

string