Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DxFormLayoutGroup.ExpandButtonIconCssClass Property

Specifies the CSS class name for the group’s Expand button.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[DefaultValue(null)]
[Parameter]
public string ExpandButtonIconCssClass { get; set; }

#Property Value

Type Default Description
String null

The CSS class name.

#Remarks

Use the CollapseButtonIconCssClass and ExpandButtonIconCssClass properties to specify custom icons for the expand/collapse button.

The following code snippet assigns an Open Iconic icon when the group is in the collapsed state:

Razor
<DxFormLayout>
    <DxFormLayoutGroup Caption="Personal Information" 
                       ExpandButtonDisplayMode="GroupExpandButtonDisplayMode.Start"
                       ExpandButtonIconCssClass="oi oi-plus">
        <DxFormLayoutItem Caption="First Name">
            <DxTextBox />
        </DxFormLayoutItem>
        <DxFormLayoutItem Caption="Last Name">
            <DxTextBox />
        </DxFormLayoutItem>
    </DxFormLayoutGroup>
</DxFormLayout>

Expand icon

See Also