New to KendoReact? Start a free 30-day trial
Represents the SpreadsheetWidget, holding the core functionality of the Spreadsheet.
(element: HTMLElement, options: SpreadsheetOptions)
HTMLElement
SpreadsheetOptions
|
---|
Gets or sets the active sheet.
|
|
|
|
---|
Executes the passed command against the selected cell/range.
|
Parameters | | |
---|
options
|
any
|
An object containing the command name and the required by it options.
|
|
|
---|
Clears the Spreadsheet and populates it with data from the specified Excel (.xlsx) file.
|
Parameters | | |
---|
file
|
Blob | File
|
|
|
Returns | |
---|
Promise<void>
|
A promise that will be resolved when the file is loaded and the data is populated.
|
|
|
---|
Loads the workbook data from an object with the format that is defined in the configuration.
Note: All existing sheets and their data will be lost.
|
Parameters | | |
---|
json
|
DocumentDescriptor
|
The object from where data will be loaded. This has to be the deserialized object, not the JSON string.
|
|
|
---|
Re-renders all data in the Spreadsheet.
|
|
---|
Initiates the Excel export. Also fires the excelExport event.
Note: Calling this method may trigger the built-in popup blocker of the browser.
To avoid that, always call it as a response to an end-user action, for example, a button click.
|
|
Returns | |
---|
Promise<undefined>
|
|
|
|
---|
Serializes the workbook. This method does not return the JSON, but a Promise object which will yield the JSON data when it is available.
The method is functionally similar to toJSON , but it is also able to save the embedded images (this is the reason why it must be asynchronous).
|
|
|
---|
Returns an array with the sheets in the workbook.
|
|