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

Defines the fluent API for configuring the SplitButtonItem settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class SplitButtonItemBuilder

Inheritance: objectSplitButtonItemBuilder

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Initialize the SplitButtonItemBuilder

C#
public SplitButtonItemBuilder(SplitButtonItem settings)
Parameters:settingsSplitButtonItem

The SplitButtonItem

Methods

Adds unique click callback for the menu item.

C#
public SplitButtonItemBuilder Click(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The value that configures the click action.

Returns:

SplitButtonItemBuilder

Adds unique click callback for the menu item.

C#
public SplitButtonItemBuilder Click(string handler)
Parameters:handlerstring

The value that configures the click action.

Returns:

SplitButtonItemBuilder

Adds a custom data callback to be added to the context of menu item - useful to attach context dynamically.

C#
public SplitButtonItemBuilder Data(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The value that configures the data action.

Returns:

SplitButtonItemBuilder

Adds a custom data callback to be added to the context of menu item - useful to attach context dynamically.

C#
public SplitButtonItemBuilder Data(string handler)
Parameters:handlerstring

The value that configures the data action.

Returns:

SplitButtonItemBuilder

Toggles the enabled state of the item.

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

The value that configures the enabled.

Returns:

SplitButtonItemBuilder

Indicates wether the item should hidden.

C#
public SplitButtonItemBuilder Hidden(bool value)
Parameters:valuebool

The value that configures the hidden.

Returns:

SplitButtonItemBuilder

Adds custom attributes to the LI element of the menu button.

C#
public SplitButtonItemBuilder HtmlAttributes(IDictionary<string, object> value)
Parameters:valueIDictionary<string, object>

The value that configures the htmlattributes.

Returns:

SplitButtonItemBuilder

Adds custom attributes to the LI element of the menu button.

C#
public SplitButtonItemBuilder HtmlAttributes(object value)
Parameters:valueobject

The value that configures the htmlattributes.

Returns:

SplitButtonItemBuilder

Specifies the icon of the item.

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

The value that configures the icon.

Returns:

SplitButtonItemBuilder

Specifies the id of the item.

C#
public SplitButtonItemBuilder Id(string value)
Parameters:valuestring

The value that configures the id.

Returns:

SplitButtonItemBuilder

Specifies the image of the item.

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

The value that configures the imageurl.

Returns:

SplitButtonItemBuilder

Specifies the custom CSS class that is added to the sprite icon element of the item.

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

The value that configures the spritecssclass.

Returns:

SplitButtonItemBuilder

Specifies the text of the item. ### items.url StringSpecifies the url of the item - it will render a element and will navigate the browser on click.

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

The value that configures the text.

Returns:

SplitButtonItemBuilder

Specifies the url of the item - it will render a element and will navigate the browser on click.

C#
public SplitButtonItemBuilder Url(string value)
Parameters:valuestring

The value that configures the url.

Returns:

SplitButtonItemBuilder