# DataBoundFormComponent<T> Class

Class DataBoundFormComponent. Implements the [RadzenComponent](https://blazor.radzen.com/docs/api/Radzen.RadzenComponent.md) Implements the [IRadzenFormComponent](https://blazor.radzen.com/docs/api/Radzen.IRadzenFormComponent.md)

Namespace: [Radzen](https://blazor.radzen.com/docs/api/Radzen.md)

Assembly: Radzen.Blazor.dll

## Inheritance

- Object
- ComponentBase
- [RadzenComponent](https://blazor.radzen.com/docs/api/Radzen.RadzenComponent.md)
- DataBoundFormComponent<T>

## Implements

- IComponent
- IHandleEvent
- IHandleAfterRender
- [IRadzenFormComponent](https://blazor.radzen.com/docs/api/Radzen.IRadzenFormComponent.md)

## Syntax

```csharp
public class DataBoundFormComponent<T> : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRender, IRadzenFormComponent
```

## Type Parameters

| Name | Description |
|------|-------------|
| T |  |

## Constructors

| Constructor | Description |
|-------------|-------------|
| `public DataBoundFormComponent<T>()` | Class DataBoundFormComponent. Implements the [RadzenComponent](https://blazor.radzen.com/docs/api/Radzen.RadzenComponent.md) Implements the [IRadzenFormComponent](https://blazor.radzen.com/docs/api/Radzen.IRadzenFormComponent.md) |

## Fields

| Field | Type | Description |
|------|------|-------------|
| _view | `IQueryable` | The view |

## Properties

| Property | Type | Description |
|------|------|-------------|
| Change | `EventCallback<object>` | Gets or sets the change. |
| CurrentPlaceholder | `string` | Gets the current placeholder. Returns empty string if this component is inside a RadzenFormField. |
| Data | `Collections.IEnumerable` | Gets or sets the data. |
| Disabled | `bool` | Gets or sets a value indicating whether this [DataBoundFormComponent<T>](https://blazor.radzen.com/docs/api/Radzen.DataBoundFormComponent-1.md) is disabled. |
| EditContext | `Forms.EditContext` | Gets or sets the edit context. |
| FieldIdentifier | `Forms.FieldIdentifier` | Gets the field identifier. |
| FilterCaseSensitivity | [`FilterCaseSensitivity`](https://blazor.radzen.com/docs/api/Radzen.FilterCaseSensitivity.md) | Gets or sets the filter case sensitivity. |
| FilterOperator | [`StringFilterOperator`](https://blazor.radzen.com/docs/api/Radzen.StringFilterOperator.md) | Gets or sets the filter operator. |
| Form | [`IRadzenForm`](https://blazor.radzen.com/docs/api/Radzen.IRadzenForm.md) | Gets or sets the form. |
| FormFieldContext | [`IFormFieldContext`](https://blazor.radzen.com/docs/api/Radzen.Blazor.IFormFieldContext.md) | Provides support for RadzenFormField integration. |
| HasValue | `bool` | Gets a value indicating whether this instance has value. |
| IsBound | `bool` | Gets a value indicating whether this instance is bound. |
| IsLoading | `bool` | Gets or sets a value indicating whether this instance loading indicator is shown. |
| LoadData | `EventCallback<LoadDataArgs>` | Gets or sets the load data. |
| LoadingTemplate | `RenderFragment` | Gets or sets the loading template shown while IsLoading is true. |
| Name | `string` | Gets or sets the name. |
| Placeholder | `string` | Gets or sets the placeholder. |
| Query | `IQueryable` | Gets the query. |
| SearchText | `string` | Gets or sets the search text |
| SearchTextChanged | `EventCallback<string>` | Gets or sets the search text changed. |
| TabIndex | `int` | Gets or sets the index of the tab. |
| TextProperty | `string` | Gets or sets the name of the property used as the display text of each item. Required when Data contains objects and no Template is set; otherwise the item's ToString result is displayed, which for plain classes is the type name. |
| Value | `T` | Gets or sets the value. |
| ValueChanged | `EventCallback<T>` | Gets or sets the value changed. |
| ValueExpression | `Expressions.Expression<Func<T>>` | Gets or sets the value expression. |
| View | `Collections.IEnumerable` | Gets the view. |

## Methods

| Method | Returns | Description |
|------|---------|-------------|
| `Dispose()` | `void` | Disposes this instance. |
| `FocusAsync()` | `ValueTask` |  |
| `GetClassList(string className)` | `Rendering.ClassList` | Gets the class list. Parameters: `className`: Name of the class. Returns: ClassList. |
| `GetValue()` | `object` | Gets the value. Returns: System.Object. |
| `NotifyFieldChanged(T value)` | `void` | Notifies the EditContext that the field has changed while validators observe the specified value. The stored value is restored afterwards so that two-way binding parameter re-flow keeps working as expected. Parameters: `value`: The value validators should observe during the notification. |
| `OnContextMenu(MouseEventArgs args)` | `Task` | Handles the ContextMenu event. Parameters: `args`: The MouseEventArgs instance containing the event data. Returns: Task. |
| `OnDataChanged()` | `Task` | Called when [data changed]. |
| `OnSearchTextChanged()` | `Task` | Called when the SearchText parameter is changed by the parent component. |
| `SetParametersAsync(ParameterView parameters)` | `Task` | Set parameters as an asynchronous operation. Parameters: `parameters`: The parameters. Returns: A Task representing the asynchronous operation. |

## Inherited Members

- From [RadzenComponent](https://blazor.radzen.com/docs/api/Radzen.RadzenComponent.md): AddContextMenu, Attributes, ContextMenu, Culture, CurrentStyle, Debounce, DefaultCulture, DefaultUICulture, Element, GetComponentCssClass, GetCssClass, GetId, GetIdAttribute, IsJSRuntimeAvailable, JSRuntime, Localize, MouseEnter, MouseLeave, OnAfterRenderAsync, OnBecameInvisible, OnInitialized, OnMouseEnter, OnMouseLeave, RaiseContextMenu, RaiseMouseEnter, RaiseMouseLeave, Reference, Style, UICulture, UniqueID, Visible
- From ComponentBase: Assets, AssignedRenderMode, BuildRenderTree, DispatchExceptionAsync, InvokeAsync, OnAfterRender, OnInitializedAsync, OnParametersSet, OnParametersSetAsync, RendererInfo, ShouldRender, StateHasChanged

