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

Grid - Adaptive

Configurator

Use the slider below to resize the Grid and observe its adaptiveness

Toolbar Scroll Buttons

Toolbar Scroll Buttons Layout

Page of 5
1 - 10 of 50 items
  • Adaptive.razor
Loading the demo source code...please wait.
Style in ThemeBuilder
  • Custom SASS variables
  • Atomic customizations
  • Sharing projects
Start Theming

Description

The Telerik UI for Blazor Grid can adapt its UI to the available space. The example above shows the following behaviors:

  • The Grid can hide the overflowing items of its Toolbar in a popup section or make them scrollable. You can enable the feature by setting the AdaptiveMode parameter to AdaptiveMode.Auto You can also control the toolbar scroll buttons layout via the ScrollButtonsPosition and ScrollButtonsVisibility parameters of the GridToolBarSettings.
  • The Grid can switch its data layout from regular columns to stacked columns. In a stacked column multiple labels and data item values can appear one below the other, which drastically reduces the required amount of horizontal space. To enable stacked columns, set the Grid DataLayoutMode parameter to GridDataLayoutMode.Stacked and set the desired number of stacked columns to the ColumnsCount parameter in GridStackedLayoutSettings.

To toggle the Grid DataLayoutMode at runtime, you can use the Telerik MediaQuery component for Blazor.

This Blazor Data Grid Adaptive example is part of a unique collection of hundreds of Blazor demos, with which you can see all Telerik UI for Blazor components and their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in Telerik REPL for Blazor or ThemeBuilder.

Support & Learning Resources

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