DxAccordionItem.Expanded Property
In This Article
Specifies whether the item is expanded.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.2.dll
NuGet Package: DevExpress.Blazor
#Declaration
C#
[DefaultValue(false)]
[Parameter]
public bool Expanded { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
Boolean | false |
|
#Remarks
Use the Expanded
property to expand or collapse the item. Handle the ExpandedChanged to react to state changes.
razor
<DxAccordion>
<Items>
<DxAccordionItem Text="Grid" />
<DxAccordionItem Text="Navigation and Layout" Expanded="true">
<Items>
<DxAccordionItem Text="Accordion" />
<DxAccordionItem Text="Stack Layout" />
</Items>
</DxAccordionItem>
<DxAccordionItem Text="Data Editors" />
<DxAccordionItem Text="Scheduler" />
</Items>
</DxAccordion>
See Also