ClassTaskBoardState<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:
public class TaskBoardState<TColumn>
Inheritance: objectTaskBoardState<TColumn>
Constructors
TaskBoardState()
Declaration
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
public IList<TaskBoardCardState> CardStates { get; set; }
Property Value
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
public IList<TaskBoardColumnState<TColumn>> ColumnStates { get; set; }
Property Value
IList<TaskBoardColumnState<TColumn>>