New to Telerik UI for Blazor? Download Free 30-day trial
MediaQuery - Grid Integration
- EXAMPLE
- VIEW SOURCE
- EDIT IN TELERIK REPL
- Change Theme
default
ID | Product Name | Price | In stock | Quantity per unit | Discontinued |
---|
1 | Chai | $18.00 | 39 | 10 boxes x 20 bags | False |
2 | Chang | $19.00 | 17 | 24 - 12 oz bottles | False |
3 | Aniseed Syrup | $10.00 | 13 | 12 - 550 ml bottles | False |
4 | Chef Anton's Cajun Seasoning | $22.00 | 53 | 48 - 6 oz jars | False |
5 | Chef Anton's Gumbo Mix | $21.35 | 0 | 36 boxes | True |
6 | Grandma's Boysenberry Spread | $25.00 | 120 | 12 - 8 oz jars | False |
7 | Uncle Bob's Organic Dried Pears | $30.00 | 15 | 12 - 1 lb pkgs. | False |
8 | Northwoods Cranberry Sauce | $40.00 | 6 | 12 - 12 oz jars | False |
9 | Mishi Kobe Niku | $97.00 | 29 | 18 - 500 g pkgs. | True |
10 | Ikura | $31.00 | 31 | 12 - 200 ml jars | False |
- Grid-integration.razor
- ProductService.cs
- ProductDto.cs
Description
The Telerik Blazor MediaQuery component can be easily integrated with the Grid. This example shows how to build an adaptive Grid layout and toggle column visibility based on the resolution.
To switch between regular Grid columns and stacked Grid columns, use the Grid DataLayoutMode
parameter. You can also set how many stacked columns the Grid renders with the ColumnsCount
parameter of GridStackedLayoutSettings
. Once the columns are stacked, users perform all data operations except editing from the Grid ToolBar.
To hide a column, you set its Visible
parameter to false
. With the Media Query component, you can easily add flags to set any component parameter based on the screen size.
Check out additional MediaQuery integration examples at: