Back to Devexpress

DxButton.SubmitFormOnClick Property

blazor-devexpress-dot-blazor-dot-dxbutton-030e86e2.md

latest1.4 KB
Original Source

DxButton.SubmitFormOnClick Property

Specifies whether the button can submit a form.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

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

Property Value

TypeDefaultDescription
Booleanfalse

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>

Run Demo: Form Validation

See Also

DxButton Class

DxButton Members

DevExpress.Blazor Namespace