Class
TableEditForm<TItem>

Definition

Namespace:Telerik.Blazor.Components.Common.Grid.EditForm

Assembly:Telerik.Blazor.dll

Type Parameters:

TItem

Syntax:

cs-api-definition
public abstract class TableEditForm<TItem> : BaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseBaseComponentTableEditForm<TItem>

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members BaseComponent.ShouldRender()BaseComponent.OnInitializedAsync()BaseComponent.OnAfterRenderAsync(bool)BaseComponent.Dispose()BaseComponent.InitLocalizer()BaseComponent.ThrowIfParameterIsNull(object, string)BaseComponent.HaveOptionsChanged(IDictionary<string, object>, IDictionary<string, object>)BaseComponent.GetClassString(params string[])BaseComponent.InvokeAsync<T>(string, params object[])BaseComponent.InvokeAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidAsync(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidComponentMethodAsync(string, params object[])BaseComponent.InvokeComponentVoidMethodAsync(string, object)BaseComponent.InvokeDisposeAsync()BaseComponent.StateHasChanged()BaseComponent.RootComponentBaseComponent.ClassComponentBase.BuildRenderTree(RenderTreeBuilder)ComponentBase.OnInitialized()ComponentBase.OnParametersSet()ComponentBase.OnParametersSetAsync()ComponentBase.OnAfterRender(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.DispatchExceptionAsync(Exception)

Constructors

TableEditForm()

Declaration

cs-api-definition
protected TableEditForm()

Properties

ButtonsLayout

Controls the layout and alignment of form action buttons like Save and Cancel. Use Start to align buttons to the left, Center to center buttons horizontally, End to align buttons to the right, or Stretch to make buttons fill available width equally.

Declaration

cs-api-definition
[Parameter]
public FormButtonsLayout? ButtonsLayout { get; set; }

Property Value

FormButtonsLayout?

ButtonsTemplate

Declaration

cs-api-definition
public virtual RenderFragment<EditFormTemplateContextBase> ButtonsTemplate { get; set; }

Property Value

RenderFragment<EditFormTemplateContextBase>

ColumnSpacing

CSS spacing value between form field columns when multiple columns are used. Accepts CSS units like px, rem, or em.

Declaration

cs-api-definition
[Parameter]
public string ColumnSpacing { get; set; }

Property Value

string

Columns

Number of columns to arrange form fields into when using horizontal orientation. Creates a grid layout for better space utilization.

Declaration

cs-api-definition
[Parameter]
public int Columns { get; set; }

Property Value

int

ColumnsCollection

The collection of columns that define the structure and layout of the edit form fields.

Declaration

cs-api-definition
[Parameter]
public List<IColumn> ColumnsCollection { get; set; }

Property Value

List<IColumn>

ExecuteCommand

Callback function to execute command operations like Save, Cancel, or Update when form actions are triggered.

Declaration

cs-api-definition
[Parameter]
public Func<TableCommandEventArgs, Task> ExecuteCommand { get; set; }

Property Value

Func<TableCommandEventArgs, Task>

FormRef

Declaration

cs-api-definition
protected TelerikForm FormRef { get; set; }

Property Value

TelerikForm

FormTemplate

Declaration

cs-api-definition
public virtual RenderFragment<EditFormTemplateContextBase> FormTemplate { get; set; }

Property Value

RenderFragment<EditFormTemplateContextBase>

IsNew

Indicates whether this is a new item being created or an existing item being edited. Used to determine form behavior and validation.

Declaration

cs-api-definition
[Parameter]
public bool IsNew { get; set; }

Property Value

bool

Item

The data item being edited in the form. Contains the current values for all editable properties.

Declaration

cs-api-definition
[Parameter]
public TItem Item { get; set; }

Property Value

TItem

Orientation

Sets the layout direction of form fields. Use Horizontal for side-by-side label and input placement to save vertical space, or Vertical for stacked labels above inputs for better readability on narrow screens.

Declaration

cs-api-definition
[Parameter]
public FormOrientation Orientation { get; set; }

Property Value

FormOrientation

Size

Sets the overall size theme for form fields and controls. Use Small, Medium, or Large to adjust field dimensions and spacing.

Declaration

cs-api-definition
[Parameter]
public string Size { get; set; }

Property Value

string

ValidationEnabled

Declaration

cs-api-definition
public bool ValidationEnabled { get; }

Property Value

bool

ValidationSettings

Configuration settings for form validation behavior. Controls whether validation is enabled and how it behaves.

Declaration

cs-api-definition
[Parameter]
public IValidationSettings ValidationSettings { get; set; }

Property Value

IValidationSettings

Methods

Cancel()

Declaration

cs-api-definition
protected Task Cancel()

Returns

Task

IsValid()

Declaration

cs-api-definition
public bool IsValid()

Returns

bool

OnEditorChange(object)

Declaration

cs-api-definition
protected Task OnEditorChange(object newValue)

Parameters

newValue

object

Returns

Task

SetParametersAsync(ParameterView)

Declaration

cs-api-definition
public override Task SetParametersAsync(ParameterView parameters)

Parameters

parameters

ParameterView

Returns

Task

Overrides ComponentBase.SetParametersAsync(ParameterView)

TriggerCommand<TClickEventArgs>(string, EventCallback<TClickEventArgs>)

Declaration

cs-api-definition
public Task TriggerCommand<TClickEventArgs>(string commandName, EventCallback<TClickEventArgs> clickHandler) where TClickEventArgs : TableGridBaseCommandEventArgs, new()

Parameters

commandName

string

clickHandler

EventCallback<TClickEventArgs>

Returns

Task

Update()

Declaration

cs-api-definition
protected Task Update()

Returns

Task