Class DataBoundFormComponent. Implements the RadzenComponent Implements the IRadzenFormComponent
RadzenComponent.GetIdAttribute
RadzenComponent.GetComponentCssClass
RadzenComponent.OnAfterRenderAsync
RadzenComponent.RaiseContextMenu
RadzenComponent.RaiseMouseEnter
RadzenComponent.AddContextMenu
RadzenComponent.RaiseMouseLeave
RadzenComponent.OnBecameInvisible
RadzenComponent.DefaultCulture
RadzenComponent.DefaultUICulture
RadzenComponent.IsJSRuntimeAvailable
ComponentBase.BuildRenderTree
ComponentBase.OnInitializedAsync
ComponentBase.OnParametersSetAsync
ComponentBase.StateHasChanged
ComponentBase.ShouldRender
ComponentBase.OnAfterRender
ComponentBase.InvokeAsync
ComponentBase.DispatchExceptionAsync
ComponentBase.RendererInfo
ComponentBase.Assets
ComponentBase.AssignedRenderMode
Namespace: Radzen
Assembly: Radzen.Blazor.dll
public class DataBoundFormComponent<T> : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRender, IRadzenFormComponent| Name | Description |
|---|---|
| T |
Class DataBoundFormComponent. Implements the RadzenComponent Implements the IRadzenFormComponent
public DataBoundFormComponent<T>()Gets or sets the change.
public EventCallback<object> Change { get; set; }
| Type | Description |
|---|---|
| EventCallback<object> | Gets or sets the change. |
Gets the current placeholder. Returns empty string if this component is inside a RadzenFormField.
protected string CurrentPlaceholder { get; }
| Type | Description |
|---|---|
| string | Gets the current placeholder. Returns empty string if this component is inside a RadzenFormField. |
Gets or sets the data.
public Collections.IEnumerable Data { get; set; }
| Type | Description |
|---|---|
| Collections.IEnumerable | Gets or sets the data. |
Gets or sets a value indicating whether this DataBoundFormComponent<T> is disabled.
public bool Disabled { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets a value indicating whether this DataBoundFormComponent<T> is disabled. |
Gets or sets the edit context.
public Forms.EditContext EditContext { get; set; }
| Type | Description |
|---|---|
| Forms.EditContext | Gets or sets the edit context. |
Gets the field identifier.
public Forms.FieldIdentifier FieldIdentifier { get; set; }
| Type | Description |
|---|---|
| Forms.FieldIdentifier | Gets the field identifier. |
Gets or sets the filter case sensitivity.
public FilterCaseSensitivity FilterCaseSensitivity { get; set; }
| Type | Description |
|---|---|
| FilterCaseSensitivity | Gets or sets the filter case sensitivity. |
Gets or sets the filter operator.
public StringFilterOperator FilterOperator { get; set; }
| Type | Description |
|---|---|
| StringFilterOperator | Gets or sets the filter operator. |
Gets or sets the form.
public IRadzenForm Form { get; set; }
| Type | Description |
|---|---|
| IRadzenForm | Gets or sets the form. |
Provides support for RadzenFormField integration.
public IFormFieldContext FormFieldContext { get; set; }
| Type | Description |
|---|---|
| IFormFieldContext | Provides support for RadzenFormField integration. |
Gets the id of the enclosing RadzenFormField label for use as aria-labelledby on elements that cannot be the target of a label, or null when the component is not the one the form field label points to or the consumer supplied aria-label or aria-labelledby via Attributes.
protected string FormFieldLabelledBy { get; }
| Type | Description |
|---|---|
| string | Gets the id of the enclosing RadzenFormField label for use as aria-labelledby on elements that cannot be the target of a label, or null when the component is not the one the form field label points to or the consumer supplied aria-label or aria-labelledby via Attributes. |
Gets a value indicating whether this instance has value.
public bool HasValue { get; }
| Type | Description |
|---|---|
| bool | Gets a value indicating whether this instance has value. |
Gets a value indicating whether this instance is bound.
public bool IsBound { get; }
| Type | Description |
|---|---|
| bool | Gets a value indicating whether this instance is bound. |
Gets or sets a value indicating whether this instance loading indicator is shown.
public bool IsLoading { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets a value indicating whether this instance loading indicator is shown. |
Gets the id of the element a RadzenFormField label points to with its for attribute. Defaults to the component id; components that render their input inside a wrapper element return the input id instead.
protected string LabelTargetId { get; }
| Type | Description |
|---|---|
| string | Gets the id of the element a RadzenFormField label points to with its for attribute. Defaults to the component id; components that render their input inside a wrapper element return the input id instead. |
Gets or sets the load data.
public EventCallback<LoadDataArgs> LoadData { get; set; }
| Type | Description |
|---|---|
| EventCallback<LoadDataArgs> | Gets or sets the load data. |
Gets or sets the loading template shown while IsLoading is true.
public RenderFragment LoadingTemplate { get; set; }
| Type | Description |
|---|---|
| RenderFragment | Gets or sets the loading template shown while IsLoading is true. |
Gets or sets the name.
public string Name { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the name. |
Gets or sets the placeholder.
public string Placeholder { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the placeholder. |
Gets the query.
protected IQueryable Query { get; }
| Type | Description |
|---|---|
| IQueryable | Gets the query. |
Gets or sets the search text
public string SearchText { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the search text |
Gets or sets the search text changed.
public EventCallback<string> SearchTextChanged { get; set; }
| Type | Description |
|---|---|
| EventCallback<string> | Gets or sets the search text changed. |
Gets a value indicating whether a label whose for attribute targets Name should name the component on the client: the component has a name, is visible, is not named by a RadzenFormField and the consumer did not supply aria-label or aria-labelledby. Components with an aria label parameter of their own override it to require that the parameter is not set.
protected bool ShouldLinkLabel { get; }
| Type | Description |
|---|---|
| bool | Gets a value indicating whether a label whose for attribute targets Name should name the component on the client: the component has a name, is visible, is not named by a RadzenFormField and the consumer did not supply aria-label or aria-labelledby. Components with an aria label parameter of their own override it to require that the parameter is not set. |
Gets or sets the index of the tab.
public int TabIndex { get; set; }
| Type | Description |
|---|---|
| int | Gets or sets the index of the tab. |
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.
public string TextProperty { get; set; }
| Type | Description |
|---|---|
| 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. |
Gets or sets the value.
public T Value { get; set; }
| Type | Description |
|---|---|
| T | Gets or sets the value. |
Gets or sets the value changed.
public EventCallback<T> ValueChanged { get; set; }
| Type | Description |
|---|---|
| EventCallback<T> | Gets or sets the value changed. |
Gets or sets the value expression.
public Expressions.Expression<Func<T>> ValueExpression { get; set; }
| Type | Description |
|---|---|
| Expressions.Expression<Func<T>> | Gets or sets the value expression. |
Gets the view.
protected Collections.IEnumerable View { get; }
| Type | Description |
|---|---|
| Collections.IEnumerable | Gets the view. |
public virtual ValueTask FocusAsync()
| Type | Description |
|---|---|
| ValueTask |
Gets the class list.
protected Rendering.ClassList GetClassList(string className)
| Type | Name | Description |
|---|---|---|
| string | className | Name of the class. |
| Type | Description |
|---|---|
| Rendering.ClassList | ClassList. |
Gets the value.
public virtual object GetValue()
| Type | Description |
|---|---|
| object | System.Object. |
Returns the name whose label the client should link to the component, or null when no label should be linked, and records the link as done so that a later ElementReference) talks to the client only when Name or Visible change again. Components that already create client-side state after render pass the result to that call instead of making a separate one.
protected string LabelToLink()
| Type | Description |
|---|---|
| string |
Asks the client to point aria-labelledby of element at the label whose for attribute targets Name. Call it from OnAfterRenderAsync; it talks to the client only when Name or Visible changed since the last call. Use it for components whose focusable element is not labelable, so a RadzenLabel or a plain label associated through the name names it anyway.
protected Task LinkLabelAsync(ElementReference element)
| Type | Name | Description |
|---|---|---|
| ElementReference | element | The element that carries the accessible name. |
| Type | Description |
|---|---|
| Task |
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.
protected void NotifyFieldChanged(T value)
| Type | Name | Description |
|---|---|---|
| T | value | The value validators should observe during the notification. |
Handles the ContextMenu event.
public override Task OnContextMenu(MouseEventArgs args)
| Type | Name | Description |
|---|---|---|
| MouseEventArgs | args | The MouseEventArgs instance containing the event data. |
| Type | Description |
|---|---|
| Task | Task. |
Called when [data changed].
protected virtual Task OnDataChanged()
| Type | Description |
|---|---|
| Task |
Called when the SearchText parameter is changed by the parent component.
protected virtual Task OnSearchTextChanged()
| Type | Description |
|---|---|
| Task |
Set parameters as an asynchronous operation.
public override Task SetParametersAsync(ParameterView parameters)
| Type | Name | Description |
|---|---|---|
| ParameterView | parameters | The parameters. |
| Type | Description |
|---|---|
| Task | A Task representing the asynchronous operation. |