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

    NavigationUrlMatchMode Enum

    Lists values that specify how navigation components synchronize automatic item selection and the current browser URL.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.1.dll

    NuGet Package: DevExpress.Blazor

    #Declaration

    C#
    public enum NavigationUrlMatchMode

    #Members

    Name Description
    None

    Automatic selection synchronization is disabled.

    CurrentPath

    The component selects an item if the item’s NavigateUrl property value matches the current browser URL. The query string appended to the URL is ignored.

    Prefix

    The component selects an item if the item’s NavigateUrl property value starts with the current browser URL and vice versa.

    Exact

    The component selects an item if the item’s NavigateUrl property value matches the current browser URL.

    #Related API Members

    The following properties accept/return NavigationUrlMatchMode values:

    #Remarks

    The component can automatically select and expand to an item based on the item’s NavigateUrl property value and the current browser URL. Use the UrlMatchMode property and set the SelectionMode property value to Single to enable this functionality.

    In the following example, the Accordion selects an item if the NavigateUrl property value matches the current page’s address:

    Razor
    <div class="p-2">
        <DxAccordion UrlMatchMode="NavigationUrlMatchMode.Exact" 
                     SelectionMode="NavigationSelectionMode.Single">
            <Items>
                <DxAccordionItem Text="Shapes" NavigateUrl="shapes">
                    <Items>
                        <DxAccordionItem Text="Circle" />
                        <DxAccordionItem Text="Square" />
                    </Items>
                </DxAccordionItem>
                <DxAccordionItem Text="Templates" />
            </Items>
        </DxAccordion>
    </div>
    

    Url Match Mode Result

    You can also use the DxAccordionItem.UrlMatchMode property to specify this option for individual items.

    See Also