Skip to main content
.NET Framework 4.6.2+

IModelLayoutGroup.IsCollapsibleGroup Property

Specifies whether a layout group can be collapsed.

Namespace: DevExpress.ExpressApp.Model

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

Declaration

[DefaultValue(false)]
[ModelBrowsable(typeof(ModelLayoutCollapsibleGroupVisibilityCalculator))]
bool IsCollapsibleGroup { get; set; }

Property Value

Type Default Description
Boolean false

true if a layout card group can be collapsed; otherwise, false.

Remarks

The IsCollapsibleGroup property enables the expand/collapse button in a group of View Items. This feature helps users to organize complex Detail Views in WinForms, ASP.NET Web Forms, and ASP.NET Core Blazor applications.

WinForms
IsCollapsibleGroup WinOpen
ASP.NET Web Forms
IsCollapsibleGroup WebOpen
ASP.NET Core Blazor
IsCollapsibleGroup Blazor

To make a selected group collapsible in WinForms, ASP.NET Web Forms, and ASP.NET Core Blazor projects, double-click the MySolution\Module\Model.xamfl file to invoke Model Editor. Navigate to the Views | <DetailView> | Layout node, expand the layout group node, focus the group item node, and set the IsCollapsibleGroup property value to True.

IsCollapsibleGroup_ModelEditor

Alternatively, you can access this property in a platform-specific module (MySolution\Blazor.Server\Model.xamfl, MySolution\Win\Model.xamfl, or MySolution\Web\Model.xamfl file) and change the setting for the ASP.NET Core Blazor, Windows Forms, or ASP.NET Web Forms project respectively.

Note that in ASP.NET Web Forms projects, the IsCollapsibleGroup property is applicable only to card groups. For additional information about card groups, refer to the following topic: IModelViewLayoutElementWeb.IsCardGroup.

See Also