Kendo.Mvc.UI.Fluent.SpreadsheetBuilder

Defines the fluent API for configuring the Kendo UI Spreadsheet

Methods

ActiveSheet(System.String)

The name of the currently active sheet.Must match one of the (sheet names)[#configuration-sheets.name] exactly.

Parameters

value System.String

The value for ActiveSheet

ColumnWidth(System.Double)

The default column width in pixels.

Parameters

value System.Double

The value for ColumnWidth

Columns(System.Double)

The number of columns in the document.

Parameters

value System.Double

The value for Columns

DefaultCellStyle(System.Action<Kendo.Mvc.UI.Fluent.SpreadsheetDefaultCellStyleSettingsBuilder>)

The default cell styles to be applyied to sheet cells.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.SpreadsheetDefaultCellStyleSettingsBuilder>

The configurator for the defaultcellstyle setting.

HeaderHeight(System.Double)

The height of the header row in pixels.

Parameters

value System.Double

The value for HeaderHeight

HeaderWidth(System.Double)

The width of the header column in pixels.

Parameters

value System.Double

The value for HeaderWidth

Excel(System.Action<Kendo.Mvc.UI.Fluent.SpreadsheetExcelSettingsBuilder>)

Configures the Kendo UI Spreadsheet Excel export settings.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.SpreadsheetExcelSettingsBuilder>

The configurator for the excel setting.

Pdf(System.Action<Kendo.Mvc.UI.Fluent.SpreadsheetPdfSettingsBuilder>)

Configures the Kendo UI Spreadsheet PDF export settings.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.SpreadsheetPdfSettingsBuilder>

The configurator for the pdf setting.

RowHeight(System.Double)

The default row height in pixels.

Parameters

value System.Double

The value for RowHeight

Rows(System.Double)

The number of rows in the document.

Parameters

value System.Double

The value for Rows

Sheets(System.Action<Kendo.Mvc.UI.Fluent.SpreadsheetSheetFactory>)

An array defining the document sheets and their content.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.SpreadsheetSheetFactory>

The configurator for the sheets setting.

Sheetsbar(System.Boolean)

A boolean value indicating if the sheetsbar should be displayed.

Parameters

value System.Boolean

The value for Sheetsbar

Toolbar(System.Action<Kendo.Mvc.UI.Fluent.SpreadsheetToolbarSettingsBuilder>)

A boolean value indicating if the toolbar should be displayed.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.SpreadsheetToolbarSettingsBuilder>

The configurator for the toolbar setting.

Toolbar(System.Boolean)

A boolean value indicating if the toolbar should be displayed.

Parameters

enabled System.Boolean

Enables or disables the toolbar option.

Events(System.Action<Kendo.Mvc.UI.Fluent.SpreadsheetEventBuilder>)

Configures the client-side events.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.SpreadsheetEventBuilder>

The client events action.

Example (ASPX)

@(Html.Kendo().Spreadsheet()
    .Name("Spreadsheet")
    .Events(events => events
        .InsertSheet("onInsertSheet")
    )
)