Showcase

Blazor Grid - Custom CSS Class

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 examples below cover conditional css class for grid row, conditional css class for grid column, column class, header row css class and filters row css class.
API Documentation

Conditional css class for grid row #

In the below example, we applied table-danger CSS class to the row where the employee is inactive and the table-success CSS class to the row where the employee designation is Architect.

Conditional css class for grid column #

In the below example, we applied table-danger CSS class to the Active column where the employee is inactive and the table-success CSS class to the Active column where the employee is active.

Column Class #

In the following example, the Class parameter is used to apply the CSS class to an entire grid column, including the header.

Header row css class #

Filters row css class #

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.