New to Telerik UI for Blazor? Download Free 30-day trial
Form - Adaptive
- EXAMPLE
- VIEW SOURCE
- EDIT IN TELERIK REPL
- Change Theme
default
- Adaptive.razor
- User.cs
Description
The Telerik Blazor Form can be combined with the Telerik Blazor MediaQuery to achieve responsiveness of the layout. The Telerik Blazor MediaQuery component can be used to detect any changes of the dimensions of the viewport of the user's browser. Based on dimension conditions different content can be rendered.
The current demo has three major breakpoints. Below 500px, the form items are rendered in a single column. Between 500px and 768px, the items are rendered into two columns and above 768px, the items are distributed in three columns. To see the adaptivity in action, resize the width of your browser either by resizing the whole browser window, or with the help of the dev tools of the browser (Press F12).