menu

Blazor

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

    Show / Hide Table of Contents

    Class FormEditorType

    Specifies the editor control type to render for a field in a Syncfusion DataForm.

    Inheritance
    System.Object
    FormEditorType
    Namespace: Syncfusion.Blazor.DataForm
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public sealed class FormEditorType : Enum
    Remarks

    This enumeration defines which Syncfusion editor component is used for a given form field, based on its specified data type or customization requirements.

    Examples
    <SfDataFormItem EditorType="FormEditorType.DropDownList" ... />

    Fields

    AutoComplete

    Set the form field editor to use an AutoComplete component allowing filtered selection.

    Declaration
    public const FormEditorType AutoComplete
    Field Value
    Type Description
    FormEditorType

    FormEditorType enumeration value for an AutoComplete editor control.

    Remarks

    AutoComplete is useful for fields where users can quickly find options by typing partial values.

    Checkbox

    Set the form field editor to use a Checkbox component for boolean input.

    Declaration
    public const FormEditorType Checkbox
    Field Value
    Type Description
    FormEditorType

    FormEditorType enumeration value for a Checkbox editor control.

    Remarks

    Checkbox is appropriate for true/false values, options, and selections.

    ComboBox

    Set the form field editor to use a ComboBox component, providing auto-complete and selection features.

    Declaration
    public const FormEditorType ComboBox
    Field Value
    Type Description
    FormEditorType

    FormEditorType enumeration value for a ComboBox editor control.

    Remarks

    Choose ComboBox for searchable or editable lists where users may type or choose.

    DatePicker

    Set the form field editor to use a DatePicker component for date selection.

    Declaration
    public const FormEditorType DatePicker
    Field Value
    Type Description
    FormEditorType

    FormEditorType enumeration value for a DatePicker editor control.

    Remarks

    DatePicker allows users to pick or type a date value using a dropdown calendar interface.

    DateTimePicker

    Set the form field editor to use a DateTimePicker component for date and time entry.

    Declaration
    public const FormEditorType DateTimePicker
    Field Value
    Type Description
    FormEditorType

    FormEditorType enumeration value for a DateTimePicker editor control.

    Remarks

    Use DateTimePicker for fields that require both date and precise time input.

    DropDownList

    Set the form field editor to use a DropDownList component for selection from a list.

    Declaration
    public const FormEditorType DropDownList
    Field Value
    Type Description
    FormEditorType

    FormEditorType enumeration value for a DropDownList editor control.

    Remarks

    Use DropDownList for fields that require picking a single value from a fixed set.

    Password

    Set the form field editor to use a TextBox component with password masking enabled.

    Declaration
    public const FormEditorType Password
    Field Value
    Type Description
    FormEditorType

    FormEditorType enumeration value for a password entry text box.

    Remarks

    Use Password for any field needing user credential entry or secure text.

    Switch

    Set the form field editor to use a Switch component for a toggleable boolean input.

    Declaration
    public const FormEditorType Switch
    Field Value
    Type Description
    FormEditorType

    FormEditorType enumeration value for a Switch editor control.

    Remarks

    Switch provides a modern toggle slider for true/false or enabled/disabled states.

    TextArea

    Set the form field editor to use a TextArea component for multiline text entry.

    Declaration
    public const FormEditorType TextArea
    Field Value
    Type Description
    FormEditorType

    FormEditorType enumeration value for a TextArea editor control.

    Remarks

    TextArea is ideal for longer text values, such as comments or addresses.

    TextBox

    Set the form field editor to use a TextBox component for basic text entry.

    Declaration
    public const FormEditorType TextBox
    Field Value
    Type Description
    FormEditorType

    FormEditorType enumeration value for a TextBox editor control.

    Remarks

    TextBox is suitable for most single-line string inputs, including name, title, or short descriptions.

    TimePicker

    Set the form field editor to use a TimePicker component for time-only selection.

    Declaration
    public const FormEditorType TimePicker
    Field Value
    Type Description
    FormEditorType

    FormEditorType enumeration value for a TimePicker editor control.

    Remarks

    TimePicker is appropriate for appointment or time-of-day fields where date is implied elsewhere.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved