Class
TaskBoardState<TColumn>

Represents a snapshot of the TelerikTaskBoard<TItem, TColumn> state at the time GetState() was called. Pass this object to SetStateAsync(TaskBoardState<TColumn>) to restore the column display order and card positions (e.g. after page reload or navigation).

For cross-session persistence, serialize this object (e.g. to JSON) and deserialize it on the next session. SetStateAsync(TaskBoardState<TColumn>) uses each entry's Status to match saved column state to live columns, and each entry's Id to match saved card state to live cards, restoring display order and card positions. Column and card data must always be provided through the ColumnData and CardData parameters.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Type Parameters:

TColumn

The type of the column data items.

Syntax:

cs-api-definition
public class TaskBoardState<TColumn>

Inheritance: objectTaskBoardState<TColumn>

Constructors

TaskBoardState()

Declaration

cs-api-definition
public TaskBoardState()

Properties

CardStates

The list of card state snapshots at the time GetState() was called. Each entry captures the card's Id, Status (column assignment), and Index (position within column). SetStateAsync(TaskBoardState<TColumn>) uses Id to match saved entries to live cards and restores their Status and Index values by writing back to the underlying CardData items.

Declaration

cs-api-definition
public IList<TaskBoardCardState> CardStates { get; set; }

Property Value

IList<TaskBoardCardState>

ColumnStates

The ordered list of column state snapshots at the time GetState() was called. Each entry captures the column's display Index, status key, title, WIP limit, enabled state, width, and data item. Only Index and Status are used by SetStateAsync(TaskBoardState<TColumn>) to restore display order; all other values must be provided through the ColumnData source.

Declaration

cs-api-definition
public IList<TaskBoardColumnState<TColumn>> ColumnStates { get; set; }

Property Value

IList<TaskBoardColumnState<TColumn>>