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

ToolBar

Class

Kendo UI ToolBar component

Definition

Constructors

Initializes a new instance of the ToolBar class.

C#
public ToolBar(ViewContext viewContext)
Parameters:viewContextViewContext

Properties

A JavaScript array that contains the ToolBar's commands configuration.

C#
public List<ToolBarItem> Items { get; set; }

If set to true this configuration option would enable Tab-based navigation among ToolBar items.

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

Configures the overflow behavior of the ToolBar.

C#
public ToolBarOverflowSettings Overflow { get; }

If resizable is set to true the widget will detect changes in the viewport width and hides the overflowing controls in the command overflow popup.

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

Specifies the size of the component. Default is Medium.

C#
public ComponentSize? Size { get; set; }

Methods

Serializes the component settings to a dictionary.

C#
public override IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

A dictionary of settings.

Overrides: WidgetBase.Serialize()

SerializeSettings method.

C#
protected override Dictionary<string, object> SerializeSettings()
Returns:

Dictionary<string, object>

Overrides: WidgetBase.SerializeSettings()

Writes the HTML content.

C#
protected override void WriteHtml(TextWriter writer)
Parameters:writerTextWriter

The text writer.

Overrides: WidgetBase.WriteHtml(TextWriter)

WriteInitializationScript method.

C#
public override void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

Overrides: WidgetBase.WriteInitializationScript(TextWriter)