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

A component that lets you add a command button inside a Grid command column. Supports built-in and custom actions and emits GridCommandEventArgs on click to handle row-level operations. Use Id cautiously in command columns to avoid duplicate HTML ids across rows.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

C#
public class GridCommandButton : TableCommandButtonBase<GridCommandEventArgs>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseBaseComponentButtonBaseCommandButtonBaseTableCommandButtonBase<GridCommandEventArgs>GridCommandButton...

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members TableCommandButtonBase<GridCommandEventArgs>.OnParametersSet()TableCommandButtonBase<GridCommandEventArgs>.ShowInEditTableCommandButtonBase<GridCommandEventArgs>.OnClickCommandButtonBase.CommandButtonBase.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.OnInitialized()ComponentBase.OnParametersSetAsync()ComponentBase.OnAfterRender(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.DispatchExceptionAsync(Exception)ComponentBase.SetParametersAsync(ParameterView)...

Constructors

C#
public GridCommandButton()

Methods

C#
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters:__builderRenderTreeBuilder

Overrides: ComponentBase.BuildRenderTree(RenderTreeBuilder)

Properties

Sets the unique HTML id attribute for the command button. Be careful when using this in command columns as multiple rows will have the same id. Applying an id to the command button in a command column can lead to different HTML elements having the same id.

C#
[Parameter]
public override string Id { get; set; }

Overrides: ButtonBase.Id