The DevExpress ASP.NET MVC Card View (CardView) extension allows creating adaptive layouts so that the extension's content looks consistent across all devices. This functionality uses breakpoints at which the card view shifts, resizes, or moves its cards to a new line. It allows you to create, for example, a two-column layout for narrow screens or a three-column layout for wider screens.
In this demo, resize the browser width to see how the Card View adjusts its content to different widths. The Card View cards change their position and size at each breakpoint.
The CardView stores breakpoints (CardViewBreakpoint class instances) in its Breakpoints collection. Breakpoints define the number of cards in a row (CardsPerRow) and maximum width (MaxWidth) specifications for different screen sizes specified by the DeviceSize property.
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\MVCxCardViewDemos