New to Telerik UI for Blazor? Download Free 30-day trial

Grid - Columns Visibility

Configurator
You can tie the Visible parameter of the column to your business logic, such as responsive design.
Ms. Nancy Davolio
Dr. Andrew Fuller
Ms. Janet Leverling
Mrs. Margaret Peacock
Mr. Steven Buchanan
Mr. Michael Suyama
Mr. Robert King
Ms. Laura Callahan
Ms. Anne Dodsworth
  • Columns.razor
  • EmployeeService.cs
  • EmployeeDto.cs
Loading the demo source code...please wait.

Description

This demo for the Telerik Grid for Blazor showcases the feature to programatically show and hide columns in the component. This example shows how to achieve that by clicking a button and toggling the value for the Visible parameter set to the specific column.

When you hide a column and show it again, it will persist its order in the Grid columns. You can see that live by clicking on the Show / Hide Summary Column button.

You can also tie the Visible parameter to a flag coming from responsive design media query to hide columns for small screens.

Support & Learning Resources

An error has occurred. This application may no longer respond until reloaded.
Reload