TelerikSplitButton
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:
public class TelerikSplitButton : DropDownButtonBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable, IPopupContainer, IAsyncDisposable
Inheritance: objectComponentBaseBaseComponentButtonBaseDropDownButtonBaseTelerikSplitButton...
Implements:
Inherited Members
Constructors
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.
[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.
[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.
[Parameter]
public EventCallback<SplitButtonOpenEventArgs> OnOpen { get; set; }
Defines the content of the main SplitButton action button.
[Parameter]
public RenderFragment SplitButtonContent { get; set; }
Defines the container tag for the split buttons items. See SplitButtonItem. Children: SplitButtonItem.
[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.
[Parameter]
public RenderFragment SplitButtonSettings { get; set; }
Methods
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Overrides: