Kendo.Mvc.UI.ToolBarItem

Kendo UI ToolBarItem class

Properties

HtmlAttributes

Specifies the HTML attributes of a ToolBar button.

Buttons

Specifies the buttons of ButtonGroup.

Click

Specifies the click event handler of the button. Applicable only for commands of type button and splitButton.

Enable

Specifies whether the control is initially enabled or disabled. Default value is "true".

Group

Assigns the button to a group. Applicable only for buttons with togglable: true.

Hidden

Determines if a button is visible or hidden. By default buttons are visible.

Icon

Sets icon for the item. The icon should be one of the existing in the Kendo UI theme sprite.

Id

Specifies the ID of the button.

ImageUrl

If set, the ToolBar will render an image with the specified URL in the button.

MenuButtons

Specifies the menu buttons of a SplitButton.

OverflowTemplate

Specifies what element will be added in the command overflow popup. Applicable only for items that have a template.

OverflowTemplateId

The id of the script element used for OverflowTemplate

Primary

Specifies whether the button is primary. Primary buttons receive different styling.

Selected

Specifies if the toggle button is initially selected. Applicable only for buttons with togglable: true.

SpriteCssClass

Defines a CSS class (or multiple classes separated by spaces) which will be used for button icon.

Template

Specifies what element will be added in the ToolBar wrapper. Items with template does not have a type.

TemplateId

The id of the script element used for Template

Text

Sets the text of the button.

Togglable

Specifies if the button is togglable, e.g. has a selected and unselected state.

Toggle

Specifies the toggle event handler of the button. Applicable only for commands of type button and togglable: true.

Url

Specifies the url to navigate to.

Type

Specifies the type of the item.

ShowText

Specifies where the text will be displayed.

ShowIcon

Specifies where the icon will be displayed.

Overflow

Specifies how the button behaves when the ToolBar is resized.

Methods

SerializeSettings

Serialize current instance to Dictionary