ToolBarItemButtonBuilder
Methods
HtmlAttributes(System.Collections.Generic.IDictionary)
Specifies the HTML attributes of a ButtonGroup's button.
Parameters
value - System.Collections.Generic.IDictionary<String,Object>
The value for HtmlAttributes
HtmlAttributes(System.Object)
Specifies the HTML attributes of a ButtonGroup's button.
Parameters
value - System.Object
The value for HtmlAttributes
Click(System.String)
Specifies the click event handler of the button. Applicable only for the children of a ButtonGroup.
Parameters
handler - System.String
The name of the JavaScript function that will be evaluated.
Click(System.Func)
Specifies the click event handler of the button. Applicable only for the children of a ButtonGroup.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Enable(System.Boolean)
Specifies whether the button is initially enabled or disabled.
Parameters
value - System.Boolean
The value for Enable
Group(System.String)
Assigns the button to a group. Applicable only for the children of a ButtonGroup that has togglable true.
Parameters
value - System.String
The value for Group
Hidden(System.Boolean)
Determines if the button is visible or hidden. By default the buttons are visible.
Parameters
value - System.Boolean
The value for Hidden
Hidden()
Determines if the button is visible or hidden. By default the buttons are visible.
Icon(System.String)
Sets icon for the menu button. The icon should be one of the existing in the Kendo UI theme sprite.
Parameters
value - System.String
The value for Icon
Id(System.String)
Specifies the ID of the button.
Parameters
value - System.String
The value for Id
ImageUrl(System.String)
If set, the ToolBar will render an image with the specified URL in the button.
Parameters
value - System.String
The value for ImageUrl
Selected(System.Boolean)
Specifies if the toggle button is initially selected. Applicable only for the children of a ButtonGroup that has togglable true.
Parameters
value - System.Boolean
The value for Selected
Selected()
Specifies if the toggle button is initially selected. Applicable only for the children of a ButtonGroup that has togglable true.
SpriteCssClass(System.String)
Defines a CSS class (or multiple classes separated by spaces) which will be used for button icon.
Parameters
value - System.String
The value for SpriteCssClass
Toggle(System.String)
Specifies the toggle event handler of the button. Applicable only for the children of a ButtonGroup.
Parameters
handler - System.String
The name of the JavaScript function that will be evaluated.
Toggle(System.Func)
Specifies the toggle event handler of the button. Applicable only for the children of a ButtonGroup.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Togglable(System.Boolean)
Specifies if the button is togglable, e.g. has a selected and unselected state. Applicable only for the children of a ButtonGroup.
Parameters
value - System.Boolean
The value for Togglable
Text(System.String)
Specifies the text of the menu button.
Parameters
value - System.String
The value for Text
Url(System.String)
Specifies the url of the button to navigate to.
Parameters
value - System.String
The value for Url
ShowText(Kendo.Mvc.UI.ShowIn)
Specifies where the text of the menu button will be displayed. Applicable only for the buttons of a ButtonGroup.
Parameters
value - ShowIn
The value for ShowText
ShowIcon(Kendo.Mvc.UI.ShowIn)
Specifies where the icon of the button will be displayed. Applicable only for the children of a ButtonGroup.
Parameters
value - ShowIn
The value for ShowIcon