Class
GridCommandButton

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:

cs-api-definition
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.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

GridCommandButton()

Declaration

cs-api-definition
public GridCommandButton()

Properties

Id

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.

Declaration

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

Property Value

string

Overrides ButtonBase.Id

Methods

BuildRenderTree(RenderTreeBuilder)

Declaration

cs-api-definition
protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder

RenderTreeBuilder

Overrides ComponentBase.BuildRenderTree(RenderTreeBuilder)