Kendo.Mvc.UI.DropDownButton
Kendo UI DropDownButton component
Properties
Enabled
Indicates whether the DropDownButton should be enabled or disabled. By default, it is enabled, unless a disabled="disabled" attribute is detected.
Icon
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 DropDownButton. 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.
IconClass
Defines a CSS class - or multiple classes separated by spaced - which are applied to a span element inside the DropDownButton. Allows the usage of custom icons.
ImageUrl
Defines a URL, which will be used for an img element inside the DropDownButton. 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.
Items
Specifies the menu buttons of the DropDownButton.
ItemTemplate
Specifies a custom template for the menu items.
ItemTemplateId
The id of the script element used for ItemTemplate
Popup
The options that will be used for the popup initialization. For more details about the available options refer to Popup documentation.
SpriteCssClass
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 DropDownButton. 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.
Messages
Allows localization of the strings that are used in the widget.
Size
Sets the size of the component.
Rounded
Sets a value controlling the border radius.
FillMode
Sets a value controlling how the color is applied.
ThemeColor
Sets the color of the component according to the applied theme.
Methods
WriteHtml(System.IO.TextWriter)
Writes the HTML.
WriteInitializationScript(System.IO.TextWriter)
Writes the initialization script.
Parameters
writer System.IO.TextWriter
The TextWriter.
SerializeSettings
Serialize current instance to Dictionary