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

Definition

Constructors

C#
public ToolBarItem()

Properties

Specifies the buttons of ButtonGroup.

C#
public List<ToolBarItemButton> Buttons { get; set; }

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

C#
public ClientHandlerDescriptor Click { get; set; }

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

C#
public bool? Enable { get; set; }

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

C#
public string Group { get; set; }

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

C#
public bool? Hidden { get; set; }

Specifies the HTML attributes of a ToolBar button.

C#
public IDictionary<string, object> HtmlAttributes { get; set; }

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

C#
public string Icon { get; set; }

Specifies the ID of the button.

C#
public string Id { get; set; }

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

C#
public string ImageUrl { get; set; }

Specifies the menu buttons of a SplitButton or a DropDownButton.

C#
public List<ToolBarItemMenuButton> MenuButtons { get; set; }

Specifies how the button behaves when the ToolBar is resized.

C#
public ShowInOverflowPopup? Overflow { get; set; }

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

C#
public string OverflowTemplate { get; set; }

The handler for the OverflowTemplate

C#
public string OverflowTemplateHandler { get; set; }

The id for the OverflowTemplate

C#
public string OverflowTemplateId { get; set; }

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

C#
public bool? Primary { get; set; }

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

C#
public bool? Selected { get; set; }

Specifies where the icon will be displayed.

C#
public ShowIn? ShowIcon { get; set; }

Specifies where the text will be displayed.

C#
public ShowIn? ShowText { get; set; }

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

C#
public string SpriteCssClass { get; set; }

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

C#
public string Template { get; set; }

The handler for the Template

C#
public string TemplateHandler { get; set; }

The id for the Template

C#
public string TemplateId { get; set; }

Sets the text of the button.

C#
public string Text { get; set; }

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

C#
public bool? Togglable { get; set; }

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

C#
public ClientHandlerDescriptor Toggle { get; set; }

Specifies the type of the item.

C#
public CommandType? Type { get; set; }

Specifies the url to navigate to.

C#
public string Url { get; set; }

Methods

C#
protected override void Serialize(IDictionary<string, object> json)
Parameters:jsonIDictionary<string, object>

Overrides: JsonObject.Serialize(IDictionary<string, object>)