DxAccordion.ExpandMode Property
Specifies how many items can be expanded at a time.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.2.dll
NuGet Package: DevExpress.Blazor
#Declaration
[DefaultValue(AccordionExpandMode.MultipleOrNone)]
[Parameter]
public AccordionExpandMode ExpandMode { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
Accordion |
Multiple |
An Accordion |
Available values:
Name | Description |
---|---|
Multiple |
Users can expand multiple items or collapse all items. |
Multiple | Users can expand multiple items. At least one item is always expanded. |
Single |
Users can expand one item or collapse all items. |
Single | One item is always expanded. |
#Remarks
Users can click the Accordion item’s header or expand/collapse button (depends on the ExpandCollapseAction property value) to change the expansion state. You can also use the ExpandMode
property to specify whether a user can expand multiple items simultaneously.
The following code snippet sets the ExpandMode
property value to SingleOrNone
:
<DxAccordion ExpandMode="AccordionExpandMode.SingleOrNone">
<Items>
@* ... *@
</Items>
</DxAccordion>