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

Defines the fluent API for configuring SpreadsheetToolbarSettings

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class SpreadsheetToolbarSettingsBuilder

Inheritance: objectSpreadsheetToolbarSettingsBuilder

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

SpreadsheetToolbarSettingsBuilder method.

C#
public SpreadsheetToolbarSettingsBuilder(SpreadsheetToolbarSettings container)
Parameters:containerSpreadsheetToolbarSettings

Properties

Gets the settings being configured.

C#
protected SpreadsheetToolbarSettings Container { get; }

Methods

A collection of tools that will be shown in the Data tab of the Toolbar.

C#
public SpreadsheetToolbarSettingsBuilder Data(Action<SpreadsheetToolFactory> configurator)
Parameters:configuratorAction<SpreadsheetToolFactory>

An action that configures the tools.

Returns:

SpreadsheetToolbarSettingsBuilder

Returns the current SpreadsheetToolbarSettingsBuilder instance.

Example:
C#
@( Html.Kendo().Spreadsheet()
.Name("spreadsheet")
.Toolbar(toolbar =&gt; toolbar
.Data(data =&gt; data
.Validation()
)
)
)

A Boolean value which indicates if the Data tab or a collection of tools that will be shown in the Data tab will be displayed.The available tools are: sort; filter or validation.

C#
public SpreadsheetToolbarSettingsBuilder Data(bool value)
Parameters:valuebool

The value for Data

Returns:

SpreadsheetToolbarSettingsBuilder

Returns the current SpreadsheetToolbarSettingsBuilder instance.

Example:
C#
@( Html.Kendo().Spreadsheet()
.Name("spreadsheet")
.Toolbar(toolbar =&gt; toolbar.Data(false))
)

A collection of tools that will be shown in the File tab of the Toolbar.

C#
public SpreadsheetToolbarSettingsBuilder File(Action<SpreadsheetToolFactory> configurator)
Parameters:configuratorAction<SpreadsheetToolFactory>

An action that configures the tools.

Returns:

SpreadsheetToolbarSettingsBuilder

Returns the current SpreadsheetToolbarSettingsBuilder instance.

Example:
C#
@( Html.Kendo().Spreadsheet()
.Name("spreadsheet")
.Toolbar(toolbar =&gt; toolbar
.File(file =&gt; file
.Validation()
)
)
)

A Boolean value which indicates if the File tab or a collection of tools that will be shown in the File tab will be displayed.

C#
public SpreadsheetToolbarSettingsBuilder File(bool value)
Parameters:valuebool

The value for File

Returns:

SpreadsheetToolbarSettingsBuilder

Returns the current SpreadsheetToolbarSettingsBuilder instance.

Example:
C#
@( Html.Kendo().Spreadsheet()
.Name("spreadsheet")
.Toolbar(toolbar =&gt; toolbar.File(false))
)

A collection of tools that will be shown in the Format tab of the Toolbar.

C#
public SpreadsheetToolbarSettingsBuilder Format(Action<SpreadsheetToolFactory> configurator)
Parameters:configuratorAction<SpreadsheetToolFactory>

An action that configures the tools.

Returns:

SpreadsheetToolbarSettingsBuilder

Returns the current SpreadsheetToolbarSettingsBuilder instance.

Example:
C#
@( Html.Kendo().Spreadsheet()
.Name("spreadsheet")
.Toolbar(toolbar =&gt; toolbar
.Format(format =&gt; format
.Validation()
)
)
)

A Boolean value which indicates if the Format tab or a collection of tools that will be shown in the Format tab will be displayed.

C#
public SpreadsheetToolbarSettingsBuilder Format(bool value)
Parameters:valuebool

The value for Format

Returns:

SpreadsheetToolbarSettingsBuilder

Returns the current SpreadsheetToolbarSettingsBuilder instance.

Example:
C#
@( Html.Kendo().Spreadsheet()
.Name("spreadsheet")
.Toolbar(toolbar =&gt; toolbar.Format(false))
)

Configure the available tools in the Home tab.

C#
public SpreadsheetToolbarSettingsBuilder Home(Action<SpreadsheetToolFactory> configurator)
Parameters:configuratorAction<SpreadsheetToolFactory>

An action that configures the tools.

Returns:

SpreadsheetToolbarSettingsBuilder

Returns the current SpreadsheetToolbarSettingsBuilder instance.

Example:
C#
@( Html.Kendo().Spreadsheet()
.Name("spreadsheet")
.Toolbar(toolbar =&gt; toolbar
.Home(home =&gt; home
.Bold()
.Italic()
.Open()
)
)
)

A Boolean value which indicates if the Home tab or a collection of tools that will be shown in the Home tab will be displayed.The following list indicates the available tools. The tools which are part of a tool group are defined as an array. For example ["bold", "italic", "underline"]. open; exportAs; [cut, copy, paste]; [bold, italic, underline]; backgroundColor, textColor; borders; fontSize, fontFamily; alignment; textWrap; [formatDecreaseDecimal, formatIncreaseDecimal]; format; merge; freeze or filter.

C#
public SpreadsheetToolbarSettingsBuilder Home(bool value)
Parameters:valuebool

The value for Home

Returns:

SpreadsheetToolbarSettingsBuilder

Returns the current SpreadsheetToolbarSettingsBuilder instance.

Example:
C#
@( Html.Kendo().Spreadsheet()
.Name("spreadsheet")
.Toolbar(toolbar =&gt; toolbar.Home(false))
)

A collection of tools that will be shown in the Insert tab of the Toolbar.

C#
public SpreadsheetToolbarSettingsBuilder Insert(Action<SpreadsheetToolFactory> configurator)
Parameters:configuratorAction<SpreadsheetToolFactory>

An action that configures the tools.

Returns:

SpreadsheetToolbarSettingsBuilder

Returns the current SpreadsheetToolbarSettingsBuilder instance.

Example:
C#
@( Html.Kendo().Spreadsheet()
.Name("spreadsheet")
.Toolbar(toolbar =&gt; toolbar
.Insert(insert =&gt; insert
.InsertAbove()
.RemoveRow()
)
)
)

A Boolean value which indicates if the Insert tab or a collection of tools that will be shown in the Insert tab will be displayed.The following list indicates the available tools. The tools which are part of a tool group are defined as an array. For example ["deleteColumn", "deleteRow"]. [ addColumnLeft, addColumnRight, addRowBelow, addRowAbove ] or [ deleteColumn, deleteRow ].

C#
public SpreadsheetToolbarSettingsBuilder Insert(bool value)
Parameters:valuebool

The value for Insert

Returns:

SpreadsheetToolbarSettingsBuilder

Returns the current SpreadsheetToolbarSettingsBuilder instance.

Example:
C#
@( Html.Kendo().Spreadsheet()
.Name("spreadsheet")
.Toolbar(toolbar =&gt; toolbar.Insert(false))
)

A collection of tools that will be shown in the View tab of the Toolbar.

C#
public SpreadsheetToolbarSettingsBuilder View(Action<SpreadsheetToolFactory> configurator)
Parameters:configuratorAction<SpreadsheetToolFactory>

An action that configures the tools.

Returns:

SpreadsheetToolbarSettingsBuilder

Returns the current SpreadsheetToolbarSettingsBuilder instance.

Example:
C#
@( Html.Kendo().Spreadsheet()
.Name("spreadsheet")
.Toolbar(toolbar =&gt; toolbar
.View(view =&gt; view
.Validation()
)
)
)

A Boolean value which indicates if the View tab or a collection of tools that will be shown in the View tab will be displayed.

C#
public SpreadsheetToolbarSettingsBuilder View(bool value)
Parameters:valuebool

The value for View

Returns:

SpreadsheetToolbarSettingsBuilder

Returns the current SpreadsheetToolbarSettingsBuilder instance.

Example:
C#
@( Html.Kendo().Spreadsheet()
.Name("spreadsheet")
.Toolbar(toolbar =&gt; toolbar.View(false))
)