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

ToolBar

Class

Definition

Constructors

C#
public ToolBar(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
Parameters:viewContextViewContextinitializerIJavaScriptInitializerurlGeneratorIUrlGenerator

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; set; }

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; }
C#
public ComponentSize? Size { get; set; }

Methods

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

IDictionary<string, object>

Overrides: WidgetBase.Serialize()

Writes the HTML.

C#
protected override void WriteHtml(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

Overrides: WidgetBase.WriteHtml(HtmlTextWriter)

Writes the initialization script.

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

The writer.

Overrides: WidgetBase.WriteInitializationScript(TextWriter)