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

The context object passed to the CardTemplate render fragment. Provides the typed card data item, the runtime state of the column, and built-in command methods.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Type Parameters:

TItem

The type of the card data items.

TColumn

The type of the column data items.

Syntax:

C#
public class TaskBoardCardTemplateContext<TItem, TColumn>

Inheritance: objectTaskBoardCardTemplateContext<TItem, TColumn>

Constructors

C#
public TaskBoardCardTemplateContext()

Properties

The runtime state of the column this card belongs to, including its display index, status, and configuration.

C#
public TaskBoardColumnState<TColumn> ColumnState { get; init; }

Deletes this card (with confirmation if ConfirmDelete is enabled). Equivalent to selecting "Delete Card" from the built-in actions menu.

C#
public Func<Task> DeleteCardAsync { get; init; }

Opens the card edit pane for this card. Equivalent to selecting "Edit Card" from the built-in actions menu.

C#
public Func<Task> EditCardAsync { get; init; }

Item

TItem

The typed card data item from the CardData collection.

C#
public TItem Item { get; init; }