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

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:

C#
public class TaskBoardCardState

Inheritance: objectTaskBoardCardState

Constructors

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.

C#
public TaskBoardCardState()

Properties

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.

C#
public object Id { get; init; }

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.

C#
public int Index { get; set; }

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.

C#
public string Status { get; set; }