DxButton.SubmitFormOnClick Property
Specifies whether the button can submit a form.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.1.dll
NuGet Package: DevExpress.Blazor
Declaration
[DefaultValue(false)]
[Parameter]
public bool SubmitFormOnClick { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Boolean | false |
|
Remarks
To use a <DxButton>
to submit a form (equivalent to type=”submit” HTML button):
- Place the
<DxButton>
inside a form. - Set the
SubmitFormOnClick
option totrue
.
<EditForm>
...
<DxButton SubmitFormOnClick="true" Text="Submit" RenderStyle="ButtonRenderStyle.Secondary" />
</EditForm>
See Also