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

Defines the fluent API for configuring the DropDownButtonItem settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class DropDownButtonItemBuilder

Inheritance: objectDropDownButtonItemBuilder

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

Constructors

C#
public DropDownButtonItemBuilder(DropDownButtonItem settings)
Parameters:settingsDropDownButtonItem

The DropDownButtonItem

Methods

Adds unique click callback for the menu item.

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

The value that configures the click action.

Returns:

DropDownButtonItemBuilder

Adds unique click callback for the menu item.

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

The value that configures the click action.

Returns:

DropDownButtonItemBuilder

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

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

The value that configures the data action.

Returns:

DropDownButtonItemBuilder

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

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

The value that configures the data action.

Returns:

DropDownButtonItemBuilder

Toggles the enabled state of the item.

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

The value that configures the enabled.

Returns:

DropDownButtonItemBuilder

Indicates wether the item should hidden.

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

The value that configures the hidden.

Returns:

DropDownButtonItemBuilder

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

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

The value that configures the htmlattributes.

Returns:

DropDownButtonItemBuilder

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

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

The value that configures the htmlattributes.

Returns:

DropDownButtonItemBuilder

Specifies the icon of the item.

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

The value that configures the icon.

Returns:

DropDownButtonItemBuilder

Specifies the id of the item.

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

The value that configures the id.

Returns:

DropDownButtonItemBuilder

Specifies the image of the item.

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

The value that configures the imageurl.

Returns:

DropDownButtonItemBuilder

Specifies custom css class added to the srite icon element of the item.

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

The value that configures the spritecssclass.

Returns:

DropDownButtonItemBuilder

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 DropDownButtonItemBuilder Text(string value)
Parameters:valuestring

The value that configures the text.

Returns:

DropDownButtonItemBuilder

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

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

The value that configures the url.

Returns:

DropDownButtonItemBuilder