New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Defines the fluent API for configuring the Kendo SplitButton for ASP.NET MVC.

Definition

Constructors

Initializes a new instance of the SplitButton class.

C#
public SplitButtonBuilder(SplitButton component)
Parameters:componentSplitButton

The component.

Methods

The icon rendered for the arrow button of the SplitButton.

C#
public SplitButtonBuilder ArrowIcon(string value)
Parameters:valuestring

The value that configures the arrowicon.

Returns:

SplitButtonBuilder

Indicates whether the SplitButton should be enabled or disabled. By default, it is enabled, unless a disabled="disabled" attribute is detected.

C#
public SplitButtonBuilder Enabled(bool value)
Parameters:valuebool

The value that configures the enabled.

Returns:

SplitButtonBuilder

Configures the client-side events.

C#
public SplitButtonBuilder Events(Action<SplitButtonEventBuilder> configurator)
Parameters:configuratorAction<SplitButtonEventBuilder>

The client events action.

Returns:

SplitButtonBuilder

Example:
C#
@( Html.Kendo().SplitButton()
.Name("SplitButton")
.Events(events =&gt; events
.Click("onClick")
)
)

Sets a value controlling how the color is applied.

C#
public SplitButtonBuilder FillMode(FillMode value)
Parameters:valueFillMode

The value that configures the fillmode.

Returns:

SplitButtonBuilder

Defines a name of an existing icon in the Kendo UI theme sprite. The icon will be applied as background image of a span element inside the SplitButton. The span element can be added automatically by the widget, or an existing element can be used, if it has a k-icon CSS class applied. For a list of available icon names, please refer to the Icons demo.

C#
public SplitButtonBuilder Icon(string value)
Parameters:valuestring

The value that configures the icon.

Returns:

SplitButtonBuilder

Defines a CSS class - or multiple classes separated by spaced - which are applied to a span element inside the SplitButton. Allows the usage of custom icons.

C#
public SplitButtonBuilder IconClass(string value)
Parameters:valuestring

The value that configures the iconclass.

Returns:

SplitButtonBuilder

Defines a URL, which will be used for an img element inside the SplitButton. The URL can be relative or absolute. In case it is relative, it will be evaluated with relation to the web page URL.The img element can be added automatically by the widget, or an existing element can be used, if it has a k-image CSS class applied.

C#
public SplitButtonBuilder ImageUrl(string value)
Parameters:valuestring

The value that configures the imageurl.

Returns:

SplitButtonBuilder

Specifies the menu buttons of the SplitButton.

C#
public SplitButtonBuilder Items(Action<SplitButtonItemFactory> configurator)
Parameters:configuratorAction<SplitButtonItemFactory>

The action that configures the items.

Returns:

SplitButtonBuilder

Specifies a custom template for the menu items.

C#
public SplitButtonBuilder ItemTemplate(string value)
Parameters:valuestring

The value that configures the itemtemplate.

Returns:

SplitButtonBuilder

Specifies a custom template for the menu items.

C#
public SplitButtonBuilder ItemTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the itemtemplate.

Returns:

SplitButtonBuilder

Specifies a custom template for the menu items.

C#
public SplitButtonBuilder ItemTemplateHandler(string value)
Parameters:valuestring

The value that configures the itemtemplate.

Returns:

SplitButtonBuilder

Specifies a custom template for the menu items.

C#
public SplitButtonBuilder ItemTemplateId(string value)
Parameters:valuestring

The value that configures the itemtemplate.

Returns:

SplitButtonBuilder

Specifies a custom template for the menu items.

C#
public SplitButtonBuilder ItemTemplateView(MvcHtmlString value)
Parameters:valueMvcHtmlString

The value that configures the itemtemplate.

Returns:

SplitButtonBuilder

Allows localization of the strings that are used in the widget.

C#
public SplitButtonBuilder Messages(Action<SplitButtonMessagesSettingsBuilder> configurator)
Parameters:configuratorAction<SplitButtonMessagesSettingsBuilder>

The action that configures the messages.

Returns:

SplitButtonBuilder

The options that will be used for the popup initialization. For more details about the available options refer to Popup documentation.

C#
public SplitButtonBuilder Popup(Action<SplitButtonPopupSettingsBuilder> configurator)
Parameters:configuratorAction<SplitButtonPopupSettingsBuilder>

The action that configures the popup.

Returns:

SplitButtonBuilder

Sets a value controlling the border radius.

C#
public SplitButtonBuilder Rounded(Rounded value)
Parameters:valueRounded

The value that configures the rounded.

Returns:

SplitButtonBuilder

Sets the size of the component.

C#
public SplitButtonBuilder Size(ComponentSize value)
Parameters:valueComponentSize

The value that configures the size.

Returns:

SplitButtonBuilder

Defines a CSS class (or multiple classes separated by spaces), which will be used for applying a background image to a span element inside the SplitButton. In case you want to use an icon from the Kendo UI theme sprite background image, it is easier to use the icon property.The span element can be added automatically by the widget, or an existing element can be used, if it has a k-sprite CSS class applied.

C#
public SplitButtonBuilder SpriteCssClass(string value)
Parameters:valuestring

The value that configures the spritecssclass.

Returns:

SplitButtonBuilder

Sets the text content of the button.

C#
public SplitButtonBuilder Text(string value)
Parameters:valuestring

The value for text content.

Returns:

SplitButtonBuilder

Example:
C#
@(Html.Kendo().SplitButton()
.Name("splitButton")
.Text("Paste")
)

Sets the color of the component according to the applied theme.

C#
public SplitButtonBuilder ThemeColor(ThemeColor value)
Parameters:valueThemeColor

The value that configures the themecolor.

Returns:

SplitButtonBuilder