Class
TaskBoardColumnState<TColumn>

Holds the runtime view-state of a single board column, produced from a ColumnData item via TaskBoardColumnDescriptor. Stores the display Index assigned and managed by the board at runtime, mirroring the TileLayoutItemState pattern.

Status uses an init setter for serialization support but must not be changed at runtime. Index has a public setter so consumers and SetStateAsync(TaskBoardState<TColumn>) can restore display order.

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 TaskBoardColumnState<TColumn>

Inheritance: objectTaskBoardColumnState<TColumn>

Constructors

TaskBoardColumnState()

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

Declaration

cs-api-definition
public TaskBoardColumnState()

Properties

DataItem

Gets the original raw data item from the developer's ColumnData collection. Surfaced as TColumn Item in column-related event arguments.

Declaration

cs-api-definition
public TColumn DataItem { get; }

Property Value

TColumn

Enabled

Gets whether this column accepts card interactions (add, move-in, edit, delete).

Declaration

cs-api-definition
public bool Enabled { get; }

Property Value

bool

Index

Gets or sets the zero-based display position of this column within the board. Lower values appear to the left (or top in RTL). Updated when the user reorders columns.

Declaration

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

Property Value

int

Status

Gets the unique status key of the column. Matched against each card's StatusField value to assign cards to this column. Used by SetStateAsync(TaskBoardState<TColumn>) to match saved state entries to live columns. Set only during initialization or deserialization; changing at runtime is not supported.

Declaration

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

Property Value

string

Title

Gets the display title shown in the column header.

Declaration

cs-api-definition
public string Title { get; }

Property Value

string

Width

Gets the optional CSS width override for this column (e.g. "320px"). When null, falls back to the board-level Width.

Declaration

cs-api-definition
public string Width { get; }

Property Value

string

WipLimit

Gets the WIP limit for this column. null means no limit.

Declaration

cs-api-definition
public int? WipLimit { get; }

Property Value

int?