New to Telerik UI for Blazor? Download Free 30-day trial
GridLayout - Adaptive
- EDIT IN TELERIK REPL
- Change Theme
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
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.