New to Telerik UI for Blazor? Start a free 30-day trial

A component that renders a primary action button with an attached dropdown of secondary actions. Supports main content via SplitButtonContent, dropdown items through SplitButtonItems (with SplitButtonItem), and popup configuration in SplitButtonSettings (using SplitButtonPopupSettings). Clicking the main button executes the primary action and closes the menu. Children: SplitButtonContent, SplitButtonItems, SplitButtonSettings.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

C#
public class TelerikSplitButton : DropDownButtonBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable, IPopupContainer, IAsyncDisposable

Inheritance: objectComponentBaseBaseComponentButtonBaseDropDownButtonBaseTelerikSplitButton...

Implements: IAsyncDisposableIComponentIDisposableIHandleAfterRenderIHandleEventIPopupContainer...

Inherited Members DropDownButtonBase.FocusAsync()DropDownButtonBase.OpenAsync()DropDownButtonBase.CloseAsync()DropDownButtonBase.EndIconDropDownButtonBase.EndIconVariantDropDownButtonBase.OnClickButtonBase.IdButtonBase.ChildContentButtonBase.TitleButtonBase.IconButtonBase.IconVariantButtonBase.EnabledButtonBase.TabIndexButtonBase.FillModeButtonBase.RoundedButtonBase.SizeButtonBase.ThemeColorButtonBase.AriaLabelButtonBase.AriaLabelledByButtonBase.AriaDescribedByButtonBase.AriaControlsBaseComponent.ShouldRender()BaseComponent.OnInitializedAsync()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.OnParametersSet()ComponentBase.OnParametersSetAsync()ComponentBase.OnAfterRender(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.DispatchExceptionAsync(Exception)ComponentBase.SetParametersAsync(ParameterView)...

Constructors

C#
public TelerikSplitButton()

Properties

Exposes popup visibility operations as WebMCP tools discoverable by AI models in the browser. Defaults to false. Configure names and overrides through SplitButtonSettings. Primary and enabled item actions require an explicitly enabled Click override and an explicit target per invocation. Both can run application code.

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

Fires before the popup closes, both on user interaction and when calling CloseAsync(). Set IsCancelled to true to keep the popup open.

C#
[Parameter]
public EventCallback<SplitButtonCloseEventArgs> OnClose { get; set; }

Fires before the popup opens, both on user interaction and when calling OpenAsync(). Set IsCancelled to true to prevent the opening.

C#
[Parameter]
public EventCallback<SplitButtonOpenEventArgs> OnOpen { get; set; }

Defines the content of the main SplitButton action button.

C#
[Parameter]
public RenderFragment SplitButtonContent { get; set; }

Defines the container tag for the split buttons items. See SplitButtonItem. Children: SplitButtonItem.

C#
[Parameter]
public RenderFragment SplitButtonItems { get; set; }

Defines the container tag for additional SplitButton settings. The parameters should be set in a SplitButtonPopupSettings tag. Children: SplitButtonPopupSettings. Also accepts SplitButtonWebMcpSettings to configure WebMCP tools.

C#
[Parameter]
public RenderFragment SplitButtonSettings { get; set; }

Methods

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

Overrides: ComponentBase.BuildRenderTree(RenderTreeBuilder)

C#
public ValueTask DisposeAsync()
Returns:

ValueTask

Implements: IAsyncDisposable.DisposeAsync()

C#
protected Task InitJsComponentAsync()
Returns:

Task

C#
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters:firstRenderboolReturns:

Task

Overrides: BaseComponent.OnAfterRenderAsync(bool)