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

Defines the fluent API for configuring the SpreadsheetToolbarSettings settings.

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

C#
public SpreadsheetToolbarSettingsBuilder(SpreadsheetToolbarSettings settings)
Parameters:settingsSpreadsheetToolbarSettings

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

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 will be displayed on the Spreadsheet Toolbar.

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

The value that configures the data.

Returns:

SpreadsheetToolbarSettingsBuilder

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

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

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

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

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

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 will be displayed on the Spreadsheet Toolbar.

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

The value that configures the home.

Returns:

SpreadsheetToolbarSettingsBuilder

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

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 will be displayed on the Spreadsheet Toolbar.

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

The value that configures the insert.

Returns:

SpreadsheetToolbarSettingsBuilder

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

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

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