Showcase

Blazor Grid - Column chooser

The Blazor Grid component shows tabular data with client-side or server-side paging, sorting and filtering, plus selection, a column chooser, saved settings and CSV export. The example below lets people show, hide and reorder columns, and keeps their choice in saved grid settings.
API Documentation

Column chooser #

Let people choose which columns they see and in what order. A Columns button above the grid opens a list with a search box, a checkbox for each column, and move up and move down buttons; columns can also be dragged.
How to use:
  1. Set AllowColumnChooser="true" on the Grid.
  2. Give each column a PropertyName or HeaderText; the chooser lists the columns by it.
  3. Set AlwaysVisible="true" on a column people must not hide. The last visible column can never be hidden.
  4. To keep the choice, handle GridSettingsChanged and return the saved settings from SettingsProvider. GridSettings.ColumnOrder and GridSettings.HiddenColumns hold it. Reset to default, or ResetColumnsAsync(), restores the declared columns.
Change the text with ColumnChooserButtonText, ColumnChooserSearchPlaceholderText, ColumnChooserResetText, and the other ColumnChooser*Text parameters.

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please reload the page.