DashboardExtensionSettings.UseCardLegacyLayout Property
Gets or sets whether to enable the legacy card layout used prior to v17.1.
Namespace: DevExpress.DashboardWeb.Mvc
Assembly: DevExpress.Dashboard.v24.1.Web.Mvc5.dll
NuGet Package: DevExpress.Web.Mvc5.Dashboard
Declaration
Property Value
Type | Description |
---|---|
Boolean | true, to enable the legacy card layout used prior to v17.1; otherwise, false. |
Remarks
With v17.1 and later, the CardDashboardItem allows you to arrange elements within individual cards using different layout types (Stretched, Compact, etc.). By default, the CardDashboardItem uses the Stretched layout type that arranges card elements so that they occupy an entire card area.
The UseCardLegacyLayout property allows you to create cards in a legacy layout using the Designer mode of the Web Dashboard. To use a legacy layout for the CardDashboardItem created in code, assign a null value to the Card.LayoutTemplate property.
Note
Note that if you load a dashboard XML file created before v17.1, cards will be displayed in the old layout. To display such cards using the new layout, specify the required layout type in the UI or in code.
Note
Cards that use a legacy layout do not support conditional formatting.