DataBoundFormComponent<T> Class

Class DataBoundFormComponent. Implements the RadzenComponent Implements the IRadzenFormComponent

Inheritance

Object

ComponentBase

RadzenComponent

DataBoundFormComponent<T>

Implements

IComponent

IHandleEvent

IHandleAfterRender

IRadzenFormComponent

Namespace: Radzen

Assembly: Radzen.Blazor.dll

Syntax

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

Type Parameters

Name Description
T

Constructors

DataBoundFormComponent<T>Link to this section

Class DataBoundFormComponent. Implements the RadzenComponent Implements the IRadzenFormComponent

Declaration
public DataBoundFormComponent<T>()

Fields

_viewLink to this section

The view

Declaration
protected IQueryable _view

Properties

ChangeLink to this section

Gets or sets the change.

Declaration
public EventCallback<object> Change { get; set; }
Property Value
Type Description
EventCallback<object>Gets or sets the change.

CurrentPlaceholderLink to this section

Gets the current placeholder. Returns empty string if this component is inside a RadzenFormField.

Declaration
protected string CurrentPlaceholder { get; }
Property Value
Type Description
stringGets the current placeholder. Returns empty string if this component is inside a RadzenFormField.

DataLink to this section

Gets or sets the data.

Declaration
public Collections.IEnumerable Data { get; set; }
Property Value
Type Description
Collections.IEnumerableGets or sets the data.

DisabledLink to this section

Gets or sets a value indicating whether this DataBoundFormComponent<T> is disabled.

Declaration
public bool Disabled { get; set; }
Property Value
Type Description
boolGets or sets a value indicating whether this DataBoundFormComponent<T> is disabled.

EditContextLink to this section

Gets or sets the edit context.

Declaration
public Forms.EditContext EditContext { get; set; }
Property Value
Type Description
Forms.EditContextGets or sets the edit context.

FieldIdentifierLink to this section

Gets the field identifier.

Declaration
public Forms.FieldIdentifier FieldIdentifier { get; set; }
Property Value
Type Description
Forms.FieldIdentifierGets the field identifier.

FilterCaseSensitivityLink to this section

Gets or sets the filter case sensitivity.

Declaration
public FilterCaseSensitivity FilterCaseSensitivity { get; set; }
Property Value
Type Description
FilterCaseSensitivityGets or sets the filter case sensitivity.

FilterOperatorLink to this section

Gets or sets the filter operator.

Declaration
public StringFilterOperator FilterOperator { get; set; }
Property Value
Type Description
StringFilterOperatorGets or sets the filter operator.

FormLink to this section

Gets or sets the form.

Declaration
public IRadzenForm Form { get; set; }
Property Value
Type Description
IRadzenFormGets or sets the form.

FormFieldContextLink to this section

Provides support for RadzenFormField integration.

Declaration
public IFormFieldContext FormFieldContext { get; set; }
Property Value
Type Description
IFormFieldContextProvides support for RadzenFormField integration.

HasValueLink to this section

Gets a value indicating whether this instance has value.

Declaration
public bool HasValue { get; }
Property Value
Type Description
boolGets a value indicating whether this instance has value.

IsBoundLink to this section

Gets a value indicating whether this instance is bound.

Declaration
public bool IsBound { get; }
Property Value
Type Description
boolGets a value indicating whether this instance is bound.

LoadDataLink to this section

Gets or sets the load data.

Declaration
public EventCallback<LoadDataArgs> LoadData { get; set; }
Property Value
Type Description
EventCallback<LoadDataArgs>Gets or sets the load data.

NameLink to this section

Gets or sets the name.

Declaration
public string Name { get; set; }
Property Value
Type Description
stringGets or sets the name.

PlaceholderLink to this section

Gets or sets the placeholder.

Declaration
public string Placeholder { get; set; }
Property Value
Type Description
stringGets or sets the placeholder.

QueryLink to this section

Gets the query.

Declaration
protected IQueryable Query { get; }
Property Value
Type Description
IQueryableGets the query.

SearchTextLink to this section

Gets or sets the search text

Declaration
public string SearchText { get; set; }
Property Value
Type Description
stringGets or sets the search text

SearchTextChangedLink to this section

Gets or sets the search text changed.

Declaration
public EventCallback<string> SearchTextChanged { get; set; }
Property Value
Type Description
EventCallback<string>Gets or sets the search text changed.

TabIndexLink to this section

Gets or sets the index of the tab.

Declaration
public int TabIndex { get; set; }
Property Value
Type Description
intGets or sets the index of the tab.

TextPropertyLink to this section

Gets or sets the text property.

Declaration
public string TextProperty { get; set; }
Property Value
Type Description
stringGets or sets the text property.

ValueLink to this section

Gets or sets the value.

Declaration
public T Value { get; set; }
Property Value
Type Description
TGets or sets the value.

ValueChangedLink to this section

Gets or sets the value changed.

Declaration
public EventCallback<T> ValueChanged { get; set; }
Property Value
Type Description
EventCallback<T>Gets or sets the value changed.

ValueExpressionLink to this section

Gets or sets the value expression.

Declaration
public Expressions.Expression<Func<T>> ValueExpression { get; set; }
Property Value
Type Description
Expressions.Expression<Func<T>>Gets or sets the value expression.

ViewLink to this section

Gets the view.

Declaration
protected Collections.IEnumerable View { get; }
Property Value
Type Description
Collections.IEnumerableGets the view.

Methods

DisposeLink to this section

Disposes this instance.

Declaration
public override void Dispose()

FocusAsyncLink to this section

Declaration
public virtual ValueTask FocusAsync()
Returns
Type Description
ValueTask

GetClassListLink to this section

Gets the class list.

Declaration
protected Rendering.ClassList GetClassList(string className)
Parameters
Type Name Description
string className Name of the class.
Returns
Type Description
Rendering.ClassListClassList.

GetValueLink to this section

Gets the value.

Declaration
public virtual object GetValue()
Returns
Type Description
objectSystem.Object.

NotifyFieldChangedLink to this section

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.

Declaration
protected void NotifyFieldChanged(T value)
Parameters
Type Name Description
T value The value validators should observe during the notification.

OnContextMenuLink to this section

Handles the ContextMenu event.

Declaration
public override Task OnContextMenu(MouseEventArgs args)
Parameters
Type Name Description
MouseEventArgs args The MouseEventArgs instance containing the event data.
Returns
Type Description
TaskTask.

OnDataChangedLink to this section

Called when [data changed].

Declaration
protected virtual Task OnDataChanged()
Returns
Type Description
Task

SetParametersAsyncLink to this section

Set parameters as an asynchronous operation.

Declaration
public override Task SetParametersAsync(ParameterView parameters)
Parameters
Type Name Description
ParameterView parameters The parameters.
Returns
Type Description
TaskA Task representing the asynchronous operation.
An error has occurred. This app may no longer respond until reloaded. Reload 🗙