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

GridLayout - Adaptive

Trending articles
  • Adaptive.razor
  • GridLayoutArticleHeader.razor
  • GridLayoutArticle.cs
Loading the demo source code...please wait.

Style in ThemeBuilder

  • Custom SASS variables
  • Atomic customizations
  • Sharing projects
Start Theming


The Telerik Blazor GridLayout can be combined with the Telerik Blazor MediaQuery component to achieve responsive and adaptive layout. The Telerik Blazor MediaQuery detects the initial dimensions of the viewport of the user's browser and rearranges the layout depending on the configuration within the Media property within the tag. It also notifies you of any subsequent changes in the viewport via the exposed OnChange event.

The demo above shows how the layout of the Blazor GridLayout UI component can be dynamically adjusted. At width 768px and above, the grid layout items are distributed in three columns, at width between 500px and 768px, the items are distributed into two columns. Below 500px, all items are stacked in a single column. To see the adaptivity in action, either resize your whole browser window or open the dev tools of the browser (Press F12) and use it to modify the available width for the demo.

This Blazor GridLayout 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.