IGridColumnTModel Interface

Represents a GridColumnTModel, TProperty interface. This interface is created so the GridTItem can use the columns without needing to know the concrete type.

Definition

Namespace: BlazorBootstrap
Assembly: BlazorBootstrap (in BlazorBootstrap.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
public interface IGridColumn<TModel>

Type Parameters

TModel
Model type of the GridTItem and GridColumnTModel, TProperty

Properties

ChildContent Specifies the content to be rendered inside the grid column.
Class The CSS Class to be applied to the column header.
CurrentSortDirection The sort direction of the column, which can be altered by the user.
DefaultSortDirection The default sort direction (as set by SortDirection)
Filterable If , filter is enabled. The filter is enabled or disabled based on the grid `AllowFiltering` parameter.
FilterOperator Gets or sets the filter operator.
FilterValue Gets or sets the filter value.
FilterValueUntil Second value (only relevant if FilterOperator is Range)
HeaderText Gets or sets the table column header text.
Id The current column's Identifier
IsDefaultSortColumn Gets or sets the default sort column.
ParsedValue The current column's value (in its property type value)
ParsedValueUntil The current column's until value for Range operations. (in its property type value)
PropertyAccessor The accessor of the property as a LambdaExpression, so the GridTItem can use it.
Sortable Enable or disable the sorting on a specific column. The sorting is enabled or disabled based on the PropertyAccessor parameter on the grid.
SortDirection Gets or sets the default sort direction of a column.

Methods

GetPropertyType Returns the property type of the current column.
GetSorting Returns the SortKeySelector and CurrentSortDirection to apply, or an empty list if no sorting is available.
OnEnumFilterValueChangedAsync Invoked if the filter value changes (If the property type is an Enum)
OnFilterOperatorChangedAsync Invoked when the filter operator is changed, either by the user or programmatically.
OnFilterUntilValueChangedAsync Invoked when the "until" value has changed, only relevant if the FilterOperator is Range
OnFilterValueChangedAsync Invoked when the filter value has changed, either by the user or programmatically.
OnSortClickAsync Invoked when the user clicks on the column header to sort.

See Also