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.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
public sealed class Grid<TItem> : BlazorBootstrapComponentBase, 
	IDisposable
where TItem : class
Inheritance
Object    ComponentBase    BlazorBootstrapComponentBase    GridTItem
Implements
IDisposable

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.
EmptyText Gets or sets the empty text. Shows text on no records.
Loc Localization service.
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.
DisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
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