Skip to main content
All docs
V25.1
  • DevExpress v25.1 Update — Your Feedback Matters

    Our What's New in v25.1 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

    NavigationSelectionMode Enum

    Lists values that specify selection options in the Accordion component.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.1.dll

    NuGet Package: DevExpress.Blazor

    #Declaration

    C#
    public enum NavigationSelectionMode

    #Members

    Name Description
    None

    Users cannot select items.

    Single

    Users can select one item.

    #Related API Members

    The following properties accept/return NavigationSelectionMode values:

    #Remarks

    Set the SelectionMode property value to Single to activate selection functionality in the Accordion component:

    Razor
    <DxAccordion SelectionMode="NavigationSelectionMode.Single">
        <Items>
            <DxAccordionItem Text="Shapes">
                <Items>
                    <DxAccordionItem Text="Circle" />
                    <DxAccordionItem Text="Square" />
                </Items>
            </DxAccordionItem>
            <DxAccordionItem Text="Templates" />
        </Items>
    </DxAccordion>
    

    Accordion with single selection

    If you want the item to expand on selection, set the AccordionExpandCollapseAction property to HeaderClick.

    See Also