Table of Contents

Class MudTableGroupRow<T>

Namespace
MudBlazor
Assembly
MudBlazor.dll

A grouping of values for a column in a MudTable<T>.

public class MudTableGroupRow<T> : MudComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IMudStateHasChanged, IDisposable

Type Parameters

T

The type of item being grouped.

Inheritance
MudTableGroupRow<T>
Implements
Inherited Members
Extension Methods

Constructors

MudTableGroupRow()

public MudTableGroupRow()

Properties

ActionsStylename

protected string ActionsStylename { get; }

Property Value

string

Checkable

Displays a checkbox which selects or unselects all items within this group.

[Parameter]
public bool Checkable { get; set; }

Property Value

bool

Remarks

Defaults to false.

Checked

Selects the checkbox for this group's header.

public bool? Checked { get; set; }

Property Value

bool?

Remarks

Only has an effect when Checkable is true.

CollapseIcon

The icon of the collapse button when Expandable is true.

[Parameter]
public string CollapseIcon { get; set; }

Property Value

string

Remarks

Defaults to ChevronRight.

Context

The current state of the MudTable<T> containing this group.

[CascadingParameter]
public TableContext? Context { get; set; }

Property Value

TableContext

ExpandIcon

The icon of the expand button when Expandable is true.

[Parameter]
public string ExpandIcon { get; set; }

Property Value

string

Remarks

Defaults to ExpandMore.

Expanded

Shows the items in this group.

public bool Expanded { get; }

Property Value

bool

Remarks

Defaults to true.

FooterClass

The CSS classes applied to this group's footer.

[Parameter]
public string? FooterClass { get; set; }

Property Value

string

Remarks

Multiple classes must be separated by spaces.

FooterClassname

protected string FooterClassname { get; }

Property Value

string

FooterStyle

The CSS styles applied to this group's footer.

[Parameter]
public string? FooterStyle { get; set; }

Property Value

string

FooterTemplate

The custom content for this group's footer.

[Parameter]
public RenderFragment<TableGroupData<object, T>>? FooterTemplate { get; set; }

Property Value

RenderFragment<TableGroupData<object, T>>

GroupDefinition

The definition for this grouping level.

[Parameter]
public TableGroupDefinition<T>? GroupDefinition { get; set; }

Property Value

TableGroupDefinition<T>

Remarks

Group definitions can be recursive.

HeaderClass

The CSS classes applied to this group's header.

[Parameter]
public string? HeaderClass { get; set; }

Property Value

string

Remarks

Multiple classes must be separated by spaces.

HeaderClassname

protected string HeaderClassname { get; }

Property Value

string

HeaderStyle

The CSS styles applied to this group's header.

[Parameter]
public string? HeaderStyle { get; set; }

Property Value

string

HeaderTemplate

The custom content for this group's header.

[Parameter]
public RenderFragment<TableGroupData<object, T>>? HeaderTemplate { get; set; }

Property Value

RenderFragment<TableGroupData<object, T>>

Items

The groups and items within this grouping.

[Parameter]
public IGrouping<object, T>? Items { get; set; }

Property Value

IGrouping<object, T>

OnRowClick

Occurs when a grouping row is clicked.

[Parameter]
public EventCallback<MouseEventArgs> OnRowClick { get; set; }

Property Value

EventCallback<MouseEventArgs>

SelectionChangeable

Prevents the change of the current selection of all items withing this group.

[Parameter]
public bool SelectionChangeable { get; set; }

Property Value

bool

Remarks

Defaults to true. Requires Checkable to be true.

Methods

BuildRenderTree(RenderTreeBuilder)

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

Dispose()

Releases resources used by this group row.

public void Dispose()

OnInitializedAsync()

protected override Task OnInitializedAsync()

Returns

Task

SetChecked(bool?, bool)

Sets the Checked value and optionally refreshes this group.

public void SetChecked(bool? checkedState, bool notify)

Parameters

checkedState bool?

The new checked state.

notify bool

When true, and Checkable is true, the MudBlazor.MudTable`1.OnGroupHeaderCheckboxClicked(System.Boolean,System.Collections.Generic.IEnumerable{`0}) event will occur.