Skip to main content

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

DxButton.SubmitFormOnClick Property

Specifies whether the button 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 form submit; otherwise, false.

#Remarks

To use a <DxButton> to submit a form (equivalent to type=”submit” HTML button):

  1. Place the <DxButton> inside a form.
  2. Set the SubmitFormOnClick option to true.
Razor
<EditForm>
  ...
  <DxButton SubmitFormOnClick="true" Text="Submit" RenderStyle="ButtonRenderStyle.Secondary" />
</EditForm>

Submit Button

Run Demo: Form Validation

See Also