Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 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

DxButtonGroupItem.SubmitFormOnClick Property

Specifies whether the processed button group item can submit a form.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[DefaultValue(false)]
[Parameter]
public bool SubmitFormOnClick { get; set; }

#Property Value

Type Default Description
Boolean false

true to allow the item to submit a form; otherwise, false.

#Remarks

You can use the button group item to submit a form. This behavior is equivalent to the HTML type=”submit” button’s behavior.

Follow the steps below to create a similar button:

  1. Place the <DxButtonGroup> component inside an EditForm and populate the component’s item collection with DxButtonGroupItem objects.

  2. Set an item’s SubmitFormOnClick property to true.

  3. Define a data model with data annotation attributes. For more information, refer to the following help topic: Validate Input.

Razor
<EditForm>
    @* ... *@
    <DxButtonGroup>
        <Items>
            <DxButtonGroupItem Text="Submit"
                            SubmitFormOnClick="true"
                            RenderStyle="ButtonRenderStyle.Secondary" />
        </Items>
    </DxButtonGroup>
     @* ... *@
</EditForm>

DxButtonGroup - Form Submit

See Also