Skip to main content
All docs
V25.1
  • DxButtonGroupItem.NavigateUrl Property

    Specifies the navigation location for the button group item.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.1.dll

    NuGet Package: DevExpress.Blazor

    Declaration

    [DefaultValue(null)]
    [Parameter]
    public string NavigateUrl { get; set; }

    Property Value

    Type Default Description
    String null

    The URL where the browser navigates.

    Remarks

    Use the NavigateUrl property to specify a URL to which the web browser navigates when the button group item is clicked. To specify where the browser should open the URL (same tab or new tab), use the Target property.

    If you use the NavigateUrl property with the Click event handler, the browser handles the event first and then navigates to the specified URL.

    Example

    The following code snippet opens the Blazor Documentation item’s NavigateUrl link in the same tab and the Blazor Demos item’s link in a new tab:

    <DxButtonGroup RenderStyle="ButtonRenderStyle.Secondary">
        <Items>
            <DxButtonGroupItem Text="Blazor Documentation"
                               NavigateUrl="https://docs.devexpress.com/Blazor/400725/blazor-components"
                               Target="_blank"/>
            <DxButtonGroupItem Text="Blazor Demos"
                               NavigateUrl="https://demos.devexpress.com/blazor/"
                               Target="_blank" />
        </Items>
    </DxButtonGroup>
    
    See Also