The DevExpress ASP.NET MVC GridView allows you to build adaptive or responsive page layouts with ease. The grid can automatically resize or hide grid data when the browser window is resized. The layout behavior can be customized by using the SettingsAdaptivity property.
In this demo, the grid provides an adaptive layout, which is enabled by setting the SettingsAdaptivity.AdaptivityMode property to HideDataCellsWindowLimit.
In adaptive mode, the GridView automatically changes its layout when the browser window inner width is less than or equal to the value specified by the SettingsAdaptivity.HideDataCellsAtWindowInnerWidth property. In this case, the grid content is reordered into one column containing adaptive detail rows. The column headers are displayed above the data.
In this demo, the GridView changes its layout when the browser window width is less than 780 pixels.
You can try GridView with a responsive layout in the Responsive Layout demo.
Local Copy of this Demo To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer. |
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher).
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\MVCxGridViewDemos |