New to Telerik UI for BlazorStart a free 30-day trial

The base class for command buttons in other components such as the ListView and the Grid.

Definition

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

Assembly:Telerik.Blazor.dll

Type Parameters:

TClickEventArgs

Syntax:

C#
public abstract class TableCommandButtonBase<TClickEventArgs> : CommandButtonBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable where TClickEventArgs : TableGridBaseCommandEventArgs, new()

Inheritance: objectComponentBaseBaseComponentButtonBaseCommandButtonBaseTableCommandButtonBase<TClickEventArgs>...

Derived Classes: GanttCommandButtonGridCommandButtonTreeListCommandButton

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members CommandButtonBase.CommandButtonBase.IdButtonBase.ChildContentButtonBase.TitleButtonBase.IconButtonBase.EnabledButtonBase.TabIndexButtonBase.FillModeButtonBase.RoundedButtonBase.SizeButtonBase.ThemeColorButtonBase.AriaLabelButtonBase.AriaLabelledByButtonBase.AriaDescribedByButtonBase.AriaControlsBaseComponent.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.InvokeVoidAsyncWithoutAwait(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.OnParametersSetAsync()ComponentBase.OnAfterRender(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.DispatchExceptionAsync(Exception)ComponentBase.SetParametersAsync(ParameterView)...

Constructors

C#
protected TableCommandButtonBase()

Methods

C#
protected override void OnParametersSet()

Overrides: ComponentBase.OnParametersSet()

Properties

OnClick

EventCallback<TClickEventArgs>

Fires when the command button is clicked. Receives event arguments with information about the clicked row and its data item. For built-in commands, use the main Grid events instead of this handler for proper CRUD operations.

C#
[Parameter]
public EventCallback<TClickEventArgs> OnClick { get; set; }

Controls button visibility based on row editing state. Set to true to show the button only during editing, false to show only in read mode. Default value is false (button visible in read mode only).

C#
[Parameter]
public bool ShowInEdit { get; set; }