Class MBGrid<TRowData>
A Material Theme grid capable of displaying icons, colored text, and text.
N.B.: At this time the grid is in preview. Expect the API to change.
Inheritance
MBGrid<TRowData>
Assembly: Material.Blazor.dll
Syntax
public class MBGrid<TRowData> : ComponentFoundation, IDisposable
Type Parameters
Name |
Description |
TRowData |
|
Properties
|
Improve this Doc
View Source
ColumnConfigurations
The configuration of each column to be displayed. See the definition of MBGridColumnConfiguration
for details.
Declaration
public IEnumerable<MBGridColumnConfiguration<TRowData>> ColumnConfigurations { get; set; }
Property Value
|
Improve this Doc
View Source
Group
The Group is an optional boolean indicating that grouping is in effect.
Declaration
public bool Group { get; set; }
Property Value
|
Improve this Doc
View Source
GroupedOrderedData
The GroupedOrderedData contains the data to be displayed.
The outer key is used for grouping and is directly displayed if grouping is enabled.
The inner key must be a unique identifier
that is used to indicate a row that has been clicked.
Declaration
public IEnumerable<KeyValuePair<string, IEnumerable<KeyValuePair<string, TRowData>>>> GroupedOrderedData { get; set; }
Property Value
|
Improve this Doc
View Source
HighlightSelectedRow
A boolean indicating whether the selected row is highlighted
Declaration
public bool HighlightSelectedRow { get; set; }
Property Value
|
Improve this Doc
View Source
KeyExpression
The KeyExpression is used to add a key to each row of the grid
Declaration
public Func<TRowData, object> KeyExpression { get; set; }
Property Value
|
Improve this Doc
View Source
LogIdentification
LogIdentification is added to logging message to allow differentiation between multiple grids
on a single page or component
Declaration
public string LogIdentification { get; set; }
Property Value
|
Improve this Doc
View Source
Measurement
Measurement determines the unit of size (EM, Percent, PX) or if the grid is to measure the
data widths (FitToData)
Declaration
public MB_Grid_Measurement Measurement { get; set; }
Property Value
|
Improve this Doc
View Source
ObscurePMI
ObscurePMI controls whether or not columns marked as PMI are obscured.
Declaration
public bool ObscurePMI { get; set; }
Property Value
|
Improve this Doc
View Source
OnMouseClick
Callback for a mouse click
Declaration
public EventCallback<string> OnMouseClick { get; set; }
Property Value
Type |
Description |
EventCallback<String> |
|
|
Improve this Doc
View Source
Declaration
public bool SupressHeader { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder builder)
Parameters
Type |
Name |
Description |
RenderTreeBuilder |
builder |
|
|
Improve this Doc
View Source
Declaration
protected async Task GridSyncScroll()
Returns
|
Improve this Doc
View Source
OnAfterRenderAsync(Boolean)
Declaration
protected override async Task OnAfterRenderAsync(bool firstRender)
Parameters
Type |
Name |
Description |
Boolean |
firstRender |
|
Returns
Overrides
|
Improve this Doc
View Source
OnInitializedAsync()
Declaration
protected override async Task OnInitializedAsync()
Returns
|
Improve this Doc
View Source
SetParametersAsync(ParameterView)
Declaration
public override Task SetParametersAsync(ParameterView parameters)
Parameters
Type |
Name |
Description |
ParameterView |
parameters |
|
Returns
|
Improve this Doc
View Source
ShouldRender()
Declaration
protected override bool ShouldRender()
Returns
Implements