Back to Devexpress

DashboardBuilder.UseCardLegacyLayout(Boolean) Method

dashboard-devexpress-dot-dashboardaspnetcore-dot-dashboardbuilder-dot-usecardlegacylayout-x28-system-dot-boolean-x29.md

latest2.5 KB
Original Source

DashboardBuilder.UseCardLegacyLayout(Boolean) Method

Specifies whether to enable the legacy card layout used prior to v17.1.

Namespace : DevExpress.DashboardAspNetCore

Assembly : DevExpress.Dashboard.v25.2.AspNetCore.dll

NuGet Package : DevExpress.AspNetCore.Dashboard

Declaration

csharp
public DashboardBuilder UseCardLegacyLayout(
    bool useCardLegacyLayout
)
vb
Public Function UseCardLegacyLayout(
    useCardLegacyLayout As Boolean
) As DashboardBuilder

Parameters

NameTypeDescription
useCardLegacyLayoutBoolean

true , to enable the legacy card layout used prior to v17.1; otherwise, false.

|

Returns

TypeDescription
DashboardBuilder

A reference to this instance after the operation has completed.

|

Remarks

With v17.1 and later, the Card dashboard item allows you to arrange elements within individual cards using different layout types (Stretched, Compact, etc.). By default, the Card dashboard item uses the Stretched layout type that arranges card elements so that they occupy an entire card area.

The UseCardLegacyLayout method allows you to create cards in a legacy layout using the Designer mode of the Web Dashboard.

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.

See Also

DashboardBuilder Class

DashboardBuilder Members

DevExpress.DashboardAspNetCore Namespace