The DevExpress ASP.NET MVC Form Layout (FormLayout) extension allows you to build adaptive edit forms with ease. The Form Layout can collapse its content from several to one column. To enable this functionality, set the SettingsAdaptivity.AdaptivityMode property to SingleColumnWindowLimit.
When adaptive mode is enabled, the Form Layout extension automatically changes its layout when the browser window is resized. When the browser window inner width is less than or equal to the value specified by the SettingsAdaptivity.SwitchToSingleColumnAtWindowInnerWidth property, Form Layout content is reordered into one column. The editor captions are displayed above or below the editor (based on the initial position).
In this demo, the Form Layout extension displays its editors in one column when the browser window width is less than 700 pixels.
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).
The source code files for this demo are installed (by default) in the following directory:
Open CS Solution
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\MVCxNavigationAndLayoutDemos