GridTItem Class

Use Blazor Bootstrap grid component to display tabular data from the data source. It supports client-side and server-side paging and sorting.

Definition

Namespace: BlazorBootstrap
Assembly: BlazorBootstrap (in BlazorBootstrap.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
public sealed class Grid<TItem> : BlazorBootstrapComponentBase
where TItem : class
Inheritance
Object    ComponentBase    BlazorBootstrapComponentBase    GridTItem

Type Parameters

TItem
Data model to apply to the grid.

Constructors

GridTItemInitializes a new instance of the GridTItem class

Properties

AllowRefresh If set to , the user is allowed (with 30-second timeout) to refresh the grid, to see whether new items have been added. This is mostly useful for log tables.
AllowSelect Whether we allow items to be selected, using a checkbox in the first column.
ChildContent Gets or sets the content to be rendered within the component.
DataProvider DataProvider is for items to render. The provider should always return an instance of 'GridDataProviderResult', and 'null' is not allowed.
DisableAllRowsSelection Enable or disable the header checkbox selection.
DisableRowSelection Enable or disable the row level checkbox selection.
EmptyText Gets or sets the empty text. Shows text on no records.
Loc Localization service.
OnRowClick This event is triggered when the user clicks on the row. Set AllowRowClick to to enable row clicking.
OnRowDoubleClick This event is triggered when the user double-clicks on the row. Set AllowRowClick to to enable row double-clicking.
PageSize Gets or sets the page size.
SelectedItemsChanged This event is fired when the item selection changes.
SelectionMode Gets or sets the grid selection mode.

Methods

AddColumn Add a column to the grid.
FilterChangedAsync Invoked when the user changes the filter of a column.
RefreshDataAsync Refresh the grid data.
ResetPageNumber Resets the page number of the pagination.
SetParametersAsync Parameters are loaded manually for sake of performance; if we were to use System.Reflection magic, it would hurt performance if components were used in large numbers.
(Overrides ComponentBaseSetParametersAsync(ParameterView))
SortingChangedAsync Invoked when the sorting of a column changes.

See Also