menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class FormButtons - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class FormButtons

    Inheritance
    System.Object
    FormButtons
    Namespace: Syncfusion.Blazor.DataForm
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class FormButtons : OwningComponentBase

    Constructors

    FormButtons()

    Declaration
    public FormButtons()

    Properties

    ChildContent

    Gets or sets the content for custom buttons to be rendered inside the Form component.

    Declaration
    public RenderFragment ChildContent { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.RenderFragment

    A Microsoft.AspNetCore.Components.RenderFragment representing the button content placed in the form's footer. The default value is null.

    Remarks

    Use this property to add custom action buttons such as Save, Reset, or Cancel to the SfDataForm component's UI.

    Examples

    Example for adding custom buttons in a SfDataForm:

    <SfDataForm DataSource="@Model">
      <FormButtons>
        <button type="button">Save</button>
        <button type="button">Reset</button>
      </FormButtons>
    </SfDataForm>

    Methods

    Dispose(Boolean)

    Releases the unmanaged resources used by the FormButtons component and optionally disposes of the managed resources.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    A bool value indicating whether to release both managed and unmanaged resources (true), or only unmanaged resources (false).

    Remarks

    This method is called by the Blazor runtime to perform resource cleanup when the component is disposed. When disposing is true, it ensures that all event handlers and references are removed to prevent memory leaks.

    OnInitializedAsync()

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type
    System.Threading.Tasks.Task
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved