TableEditForm<TItem>
Definition
Namespace:Telerik.Blazor.Components.Common.Grid.EditForm
Assembly:Telerik.Blazor.dll
Type Parameters:
TItem
Syntax:
public abstract class TableEditForm<TItem> : BaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseBaseComponentTableEditForm<TItem>
Implements:
Inherited Members
Constructors
protected TableEditForm()
Methods
public override Task SetParametersAsync(ParameterView parameters)
Overrides:
public Task TriggerCommand<TClickEventArgs>(string commandName, EventCallback<TClickEventArgs> clickHandler) where TClickEventArgs : TableGridBaseCommandEventArgs, new()
Properties
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.
[Parameter]
public FormButtonsLayout? ButtonsLayout { get; set; }
public virtual RenderFragment<EditFormTemplateContextBase> ButtonsTemplate { get; set; }
Number of columns to arrange form fields into when using horizontal orientation. Creates a grid layout for better space utilization.
[Parameter]
public int Columns { get; set; }
The collection of columns that define the structure and layout of the edit form fields.
[Parameter]
public List<IColumn> ColumnsCollection { get; set; }
CSS spacing value between form field columns when multiple columns are used. Accepts CSS units like px, rem, or em.
[Parameter]
public string ColumnSpacing { get; set; }
Callback function to execute command operations like Save, Cancel, or Update when form actions are triggered.
[Parameter]
public Func<TableCommandEventArgs, Task> ExecuteCommand { get; set; }
protected TelerikForm FormRef { get; set; }
public virtual RenderFragment<EditFormTemplateContextBase> FormTemplate { get; set; }
Indicates whether this is a new item being created or an existing item being edited. Used to determine form behavior and validation.
[Parameter]
public bool IsNew { get; set; }
Item
TItem
The data item being edited in the form. Contains the current values for all editable properties.
[Parameter]
public TItem Item { get; set; }
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.
[Parameter]
public FormOrientation Orientation { get; set; }
Sets the overall size theme for form fields and controls. Use Small, Medium, or Large to adjust field dimensions and spacing.
[Parameter]
public string Size { get; set; }
public bool ValidationEnabled { get; }
ValidationSettings
IValidationSettings
Configuration settings for form validation behavior. Controls whether validation is enabled and how it behaves.
[Parameter]
public IValidationSettings ValidationSettings { get; set; }