Table of Contents

Class TableGroupDefinition<T>

Namespace
MudBlazor
Assembly
MudBlazor.dll

A definition of a group within a MudTable<T>.

public class TableGroupDefinition<T>

Type Parameters

T

The type of item being grouped.

Inheritance
TableGroupDefinition<T>
Inherited Members
Extension Methods

Constructors

TableGroupDefinition()

Creates a new instance.

public TableGroupDefinition()

TableGroupDefinition(Func<T, object>, TableGroupDefinition<T>?)

Creates a new instance.

public TableGroupDefinition(Func<T, object> selector, TableGroupDefinition<T>? innerGroup = null)

Parameters

selector Func<T, object>

The function which selects items for this group.

innerGroup TableGroupDefinition<T>

The group nested within this group.

Properties

Expandable

Allows this group to show or hide data rows.

public bool Expandable { get; set; }

Property Value

bool

GroupName

The label for this group.

public string? GroupName { get; set; }

Property Value

string

Indentation

Indents the first column cell for this group and child groups.

public bool Indentation { get; set; }

Property Value

bool

Remarks

When set, all child group definitions are also updated. Must be set for the first grouping level.

InnerGroup

The group definition within this definition.

public TableGroupDefinition<T>? InnerGroup { get; set; }

Property Value

TableGroupDefinition<T>

IsInitiallyExpanded

Shows data rows for this group when the table is first displayed.

public bool IsInitiallyExpanded { get; set; }

Property Value

bool

Remarks

Defaults to true.

Selector

The function which selects items for this group.

public Func<T, object>? Selector { get; set; }

Property Value

Func<T, object>

Remarks

Typically used during a LINQ GroupBy() call to group items.