SpreadsheetBuilder
Defines the fluent API for configuring the Kendo UI Spreadsheet
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class SpreadsheetBuilder : WidgetBuilderBase<Spreadsheet, SpreadsheetBuilder>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<Spreadsheet, SpreadsheetBuilder>SpreadsheetBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the SpreadsheetBuilder class.
Methods
The name of the currently active sheet. Must exactly match one of the (sheet names)[#configuration-sheets.name].
public SpreadsheetBuilder ActiveSheet(string value)
The value for ActiveSheet
Returns:Returns the current SpreadsheetBuilder instance.
Binds the Spreadsheet to a dictionary containing the workbook settings.
public SpreadsheetBuilder BindTo(Dictionary<string, object> workbook)
The workbook settings
Returns:Returns the current SpreadsheetBuilder instance.
Binds the Spreadsheet to a collection of SpreadsheetSheet objects.
public SpreadsheetBuilder BindTo(IEnumerable<SpreadsheetSheet> value)
Returns the current SpreadsheetBuilder instance.
The number of columns in the document.
public SpreadsheetBuilder Columns(double value)
The value for Columns
Returns:Returns the current SpreadsheetBuilder instance.
The default column width in pixels.
public SpreadsheetBuilder ColumnWidth(double value)
The value for ColumnWidth
Returns:Returns the current SpreadsheetBuilder instance.
The default cell styles that will be applied to the sheet cells.
public SpreadsheetBuilder DefaultCellStyle(Action<SpreadsheetDefaultCellStyleSettingsBuilder> configurator)
The SpreadsheetDefaultCellStyleSettingsBuilder for the defaultcellstyle setting.
Returns:Returns the current instance of SpreadsheetBuilder .
Configures the client-side events.
public SpreadsheetBuilder Events(Action<SpreadsheetEventBuilder> configurator)
The client events action.
Returns:Returns the current SpreadsheetBuilder instance.
Configures the Excel export settings of the Spreadsheet.
public SpreadsheetBuilder Excel(Action<SpreadsheetExcelSettingsBuilder> configurator)
The SpreadsheetExcelSettingsBuilder for the excel setting.
Returns:Returns the current instance of SpreadsheetBuilder .
The height of the header row in pixels.
public SpreadsheetBuilder HeaderHeight(double value)
The value for HeaderHeight
Returns:Returns the current SpreadsheetBuilder instance.
The width of the header column in pixels.
public SpreadsheetBuilder HeaderWidth(double value)
The value for HeaderWidth
Returns:Returns the current SpreadsheetBuilder instance.
An object containing any images used in the Spreadsheet. The keys should be image ID-s (they are referenced by this ID in (sheets.drawings)[#configuration-sheets.drawings]) and the values should be image URLs.The image URLs can be eitherdata URLs, in which case the images are fully contained by the JSON, or can be external URLs.Note that when external URLs are used, they should reside on the same domain, or the server must be configured with the properCORS headers, for the Spreadsheet to be able to fetch binary image data using a XMLHttpRequest. If it cannot fetch the image, export to Excel or PDF might not work.
public SpreadsheetBuilder Images(object value)
The value for Images
Returns:Returns the current SpreadsheetBuilder instance.
Configures the PDF export settings of the Spreadsheet.
public SpreadsheetBuilder Pdf(Action<SpreadsheetPdfSettingsBuilder> configurator)
The SpreadsheetPdfSettingsBuilder for the pdf setting.
Returns:Returns the current instance of SpreadsheetBuilder .
The default row height in pixels.
public SpreadsheetBuilder RowHeight(double value)
The value for RowHeight
Returns:Returns the current SpreadsheetBuilder instance.
The number of rows in the document.
public SpreadsheetBuilder Rows(double value)
The value for Rows
Returns:Returns the current SpreadsheetBuilder instance.
An array which defins the document sheets and their content.
public SpreadsheetBuilder Sheets(Action<SpreadsheetSheetFactory> configurator)
The SpreadsheetSheetFactory for the sheets setting.
Returns:Returns the current instance of SpreadsheetBuilder .
A Boolean value which indicates if the sheets-bar will be displayed.
public SpreadsheetBuilder Sheetsbar(bool value)
The value for Sheetsbar
Returns:Returns the current SpreadsheetBuilder instance.
A Boolean value which indicates if the toolbar will be displayed.
public SpreadsheetBuilder Toolbar(Action<SpreadsheetToolbarSettingsBuilder> configurator)
The configurator for the toolbar setting.
Returns:Returns the current SpreadsheetBuilder instance.
A Boolean value which indicates if the toolbar will be displayed.
public SpreadsheetBuilder Toolbar(bool enabled)
Enables or disables the toolbar option.
Returns:Returns the current SpreadsheetBuilder instance.
If set to true, the Spreadsheet formula parser will obey the decimal separator of the current culture. If set to false (default), the decimal separator in formulas will always be the dot.This flag has implications on how formulas are entered. When it is set to true, in cultures where the decimal separator is the comma (,), similar to Excel, the following additional changes upon entering a formula will occur: The semicolon will become a function argument separator. For example, =SUM(A1;A2) instead of =SUM(A1,A2). or The backslash will become an element separator in an array formula. For example, ={1\2;3\4} instead of ={1,2;3,4}.. This flag only affects the presentation - the way formulas are entered by the end user or displayed on screen. Serialization to JSON or XLSX as well as the public API functions will continue to use the dot as decimal separator and the comma as an argument separator (canonical form). For example, to apply a formula by using the API, even if useCultureDecimals is in effect, you still need to use the canonical form.
public SpreadsheetBuilder UseCultureDecimals()
Returns the current SpreadsheetBuilder instance.
If set to true, the Spreadsheet formula parser will obey the decimal separator of the current culture. If set to false (default), the decimal separator in formulas will always be the dot.This flag has implications on how formulas are entered. When it is set to true, in cultures where the decimal separator is the comma (,), similar to Excel, the following additional changes upon entering a formula will occur: The semicolon will become a function argument separator. For example, =SUM(A1;A2) instead of =SUM(A1,A2). or The backslash will become an element separator in an array formula. For example, ={1\2;3\4} instead of ={1,2;3,4}.. This flag only affects the presentation - the way formulas are entered by the end user or displayed on screen. Serialization to JSON or XLSX as well as the public API functions will continue to use the dot as decimal separator and the comma as an argument separator (canonical form). For example, to apply a formula by using the API, even if useCultureDecimals is in effect, you still need to use the canonical form.
public SpreadsheetBuilder UseCultureDecimals(bool value)
The value for UseCultureDecimals
Returns:Returns the current SpreadsheetBuilder instance.