ClassTableEditForm<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
TableEditForm()
Declaration
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
[Parameter]
public FormButtonsLayout? ButtonsLayout { get; set; }
Property Value
ButtonsTemplate
Declaration
public virtual RenderFragment<EditFormTemplateContextBase> ButtonsTemplate { get; set; }
Property Value
ColumnSpacing
CSS spacing value between form field columns when multiple columns are used. Accepts CSS units like px, rem, or em.
Declaration
[Parameter]
public string ColumnSpacing { get; set; }
Property Value
Columns
Number of columns to arrange form fields into when using horizontal orientation. Creates a grid layout for better space utilization.
ColumnsCollection
The collection of columns that define the structure and layout of the edit form fields.
ExecuteCommand
Callback function to execute command operations like Save, Cancel, or Update when form actions are triggered.
FormRef
Declaration
protected TelerikForm FormRef { get; set; }
Property Value
FormTemplate
Declaration
public virtual RenderFragment<EditFormTemplateContextBase> FormTemplate { get; set; }
Property Value
IsNew
Indicates whether this is a new item being created or an existing item being edited. Used to determine form behavior and validation.
Item
The data item being edited in the form. Contains the current values for all editable properties.
Declaration
[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
[Parameter]
public FormOrientation Orientation { get; set; }
Property Value
Size
Sets the overall size theme for form fields and controls. Use Small, Medium, or Large to adjust field dimensions and spacing.
ValidationSettings
Configuration settings for form validation behavior. Controls whether validation is enabled and how it behaves.
Declaration
[Parameter]
public IValidationSettings ValidationSettings { get; set; }
Property Value
IValidationSettings
Methods
SetParametersAsync(ParameterView)
Declaration
public override Task SetParametersAsync(ParameterView parameters)
Parameters
parameters
Returns
Overrides
TriggerCommand<TClickEventArgs>(string, EventCallback<TClickEventArgs>)
Declaration
public Task TriggerCommand<TClickEventArgs>(string commandName, EventCallback<TClickEventArgs> clickHandler) where TClickEventArgs : TableGridBaseCommandEventArgs, new()
Parameters
commandName
clickHandler
EventCallback<TClickEventArgs>
Returns