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

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:

C#
public class TaskBoardColumnState<TColumn>

Inheritance: objectTaskBoardColumnState<TColumn>

Constructors

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.

C#
public TaskBoardColumnState()

Properties

DataItem

TColumn

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

C#
public TColumn DataItem { get; }

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

C#
public bool Enabled { get; }

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.

C#
public int Index { get; set; }

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.

C#
public string Status { get; init; }

Gets the display title shown in the column header.

C#
public string Title { get; }

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

C#
public string Width { get; }

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

C#
public int? WipLimit { get; }