ClassGridColumn
Defines a data bound column in the grid that can show all types of data.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class GridColumn : BoundColumnBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable, IGridBoundColumn, IColumn, IGridColumnMenuColumn, ITableColumnMenuColumn
Inheritance: objectComponentBaseColumnBaseBoundColumnBaseGridColumn
Implements:
Inherited Members
Constructors
GridColumn()
Declaration
public GridColumn()
Properties
Columns
The list of child columns to produce multi-column headers.
Declaration
[Parameter]
public RenderFragment Columns { get; set; }
Property Value
EditorType
Defines the editor used for editing for the given field. If not provided, a default editor will be used based on the field data type.
Declaration
[Parameter]
public GridEditorType? EditorType { get; set; }
Property Value
FilterEditorType
Defines the editor used for filtering for the given field. If not provided, a default editor will be used based on the field data type.
Declaration
[Parameter]
public GridFilterEditorType? FilterEditorType { get; set; }
Property Value
GroupFooterTemplate
Represents the column group footer cell template, where you can access and print out column aggregate values. You can render custom components and apply logic in it.
Declaration
[Parameter]
public RenderFragment<GridGroupTemplateContext> GroupFooterTemplate { get; set; }
Property Value
Implements
GroupHeaderTemplate
Represents the column group header template, where you can access and print out column aggregate values. The template is used when the Grid is grouped by the column. If no template is specified, the name of the Field and the current group value is displayed. You can render custom components and apply logic in it.
Declaration
[Parameter]
public RenderFragment<GridGroupHeaderTemplateContext> GroupHeaderTemplate { get; set; }
Property Value
Implements
Groupable
Specifies if the grid can be grouped by this column.
Declaration
[Parameter]
public bool Groupable { get; set; }
Property Value
Implements
OnCellRender
Called each time a cell is rendered. Use this to add custom classes to the cell based on its value.
Declaration
[Parameter]
public Action<GridCellRenderEventArgs> OnCellRender { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
Overrides
ThrowIfInvalidEditorType()
Declaration
protected override void ThrowIfInvalidEditorType()
Overrides
ThrowIfInvalidFilterEditorType()
Declaration
protected override void ThrowIfInvalidFilterEditorType()
Overrides