Hi
Lee Stevens,
Thank
you for reaching out. The Blazor Dashboard Layout component includes built-in
responsive behavior, automatically adjusting panels based on the size of their
parent container. This means you don’t need to manually configure different
dashboards for various screen resolutions.
For
smaller screens, the Dashboard Layout automatically transitions to a stacked
view, displaying panels in a single vertical column. By default, this change
occurs at 600px or below. If needed, you can customize this breakpoint by
setting the component’s MediaQuery property to match your preferred resolution.
we’ve
prepared a sample where a button allows you to switch between desktop and
mobile layouts:
- A single
SfDashboardLayout instance is used.
- Only the set of
DashboardLayoutPanel items is conditionally rendered.
- The desktop
panel arrangement is shown by default, clicking “Mobile” switches to the
mobile arrangement.
- Different column
counts are used for desktop and mobile to better fit each form factor.
Regards,
Praveen Sellappan
Attachment:
dashboard_37baf50d.zip