SpreadsheetEventBuilder

Methods

InsertSheet(System.String)

Defines the handler of the InsertSheet client-side event. Triggered when a sheet is inserted. Introduced in the 2017 Q1 release.

For more information see InsertSheet event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the InsertSheet event.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

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

InsertSheet(System.Func)

Defines the handler of the InsertSheet client-side event. Triggered when a sheet is inserted. Introduced in the 2017 Q1 release.

For more information see InsertSheet event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                       .Name("spreadsheet")
                       .Events(events => events.InsertSheet(@<text>
                           function(e) {
                           // Handle the InsertSheet event
                           }
                           </text>)
                        )
            )
             

RemoveSheet(System.String)

Defines the handler of the RemoveSheet client-side event. Triggered when a sheet will be removed. Introduced in the 2017 Q1 release.

For more information see RemoveSheet event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the RemoveSheet event.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                        .Name("spreadsheet")
                        .Events(events => events.RemoveSheet("onRemoveSheet"))
            )
             

RemoveSheet(System.Func)

Defines the handler of the RemoveSheet client-side event. Triggered when a sheet will be removed. Introduced in the 2017 Q1 release.

For more information see RemoveSheet event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                       .Name("spreadsheet")
                       .Events(events => events.RemoveSheet(@<text>
                           function(e) {
                           // Handle the RemoveSheet event
                           }
                           </text>)
                        )
            )
             

RenameSheet(System.String)

Defines the handler of the RenameSheet client-side event. Triggered when a sheet will be renamed. Introduced in the 2017 Q1 release.

For more information see RenameSheet event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the RenameSheet event.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                        .Name("spreadsheet")
                        .Events(events => events.RenameSheet("onRenameSheet"))
            )
             

RenameSheet(System.Func)

Defines the handler of the RenameSheet client-side event. Triggered when a sheet will be renamed. Introduced in the 2017 Q1 release.

For more information see RenameSheet event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                       .Name("spreadsheet")
                       .Events(events => events.RenameSheet(@<text>
                           function(e) {
                           // Handle the RenameSheet event
                           }
                           </text>)
                        )
            )
             

SelectSheet(System.String)

Defines the handler of the SelectSheet client-side event. Triggered when a sheet will be activated. Introduced in the 2017 Q1 release.

For more information see SelectSheet event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the SelectSheet event.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                        .Name("spreadsheet")
                        .Events(events => events.SelectSheet("onSelectSheet"))
            )
             

SelectSheet(System.Func)

Defines the handler of the SelectSheet client-side event. Triggered when a sheet will be activated. Introduced in the 2017 Q1 release.

For more information see SelectSheet event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                       .Name("spreadsheet")
                       .Events(events => events.SelectSheet(@<text>
                           function(e) {
                           // Handle the SelectSheet event
                           }
                           </text>)
                        )
            )
             

UnhideColumn(System.String)

Defines the handler of the UnhideColumn client-side event. Triggered when a column will be shown. Introduced in the 2017 Q1 release.

For more information see UnhideColumn event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the UnhideColumn event.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                        .Name("spreadsheet")
                        .Events(events => events.UnhideColumn("onUnhideColumn"))
            )
             

UnhideColumn(System.Func)

Defines the handler of the UnhideColumn client-side event. Triggered when a column will be shown. Introduced in the 2017 Q1 release.

For more information see UnhideColumn event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                       .Name("spreadsheet")
                       .Events(events => events.UnhideColumn(@<text>
                           function(e) {
                           // Handle the UnhideColumn event
                           }
                           </text>)
                        )
            )
             

UnhideRow(System.String)

Defines the handler of the UnhideRow client-side event. Triggered when a row will be shown. Introduced in the 2017 Q1 release.

For more information see UnhideRow event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the UnhideRow event.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                        .Name("spreadsheet")
                        .Events(events => events.UnhideRow("onUnhideRow"))
            )
             

UnhideRow(System.Func)

Defines the handler of the UnhideRow client-side event. Triggered when a row will be shown. Introduced in the 2017 Q1 release.

For more information see UnhideRow event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                       .Name("spreadsheet")
                       .Events(events => events.UnhideRow(@<text>
                           function(e) {
                           // Handle the UnhideRow event
                           }
                           </text>)
                        )
            )
             

HideColumn(System.String)

Defines the handler of the HideColumn client-side event. Triggered when a column will be hidden. Introduced in the 2017 Q1 release.

For more information see HideColumn event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the HideColumn event.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                        .Name("spreadsheet")
                        .Events(events => events.HideColumn("onHideColumn"))
            )
             

HideColumn(System.Func)

Defines the handler of the HideColumn client-side event. Triggered when a column will be hidden. Introduced in the 2017 Q1 release.

For more information see HideColumn event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                       .Name("spreadsheet")
                       .Events(events => events.HideColumn(@<text>
                           function(e) {
                           // Handle the HideColumn event
                           }
                           </text>)
                        )
            )
             

HideRow(System.String)

Defines the handler of the HideRow client-side event. Triggered when a row will be hidden. Introduced in the 2017 Q1 release.

For more information see HideRow event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the HideRow event.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                        .Name("spreadsheet")
                        .Events(events => events.HideRow("onHideRow"))
            )
             

HideRow(System.Func)

Defines the handler of the HideRow client-side event. Triggered when a row will be hidden. Introduced in the 2017 Q1 release.

For more information see HideRow event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                       .Name("spreadsheet")
                       .Events(events => events.HideRow(@<text>
                           function(e) {
                           // Handle the HideRow event
                           }
                           </text>)
                        )
            )
             

DeleteColumn(System.String)

Defines the handler of the DeleteColumn client-side event. Triggered when a column will be deleted. Introduced in the 2017 Q1 release.

For more information see DeleteColumn event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the DeleteColumn event.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                        .Name("spreadsheet")
                        .Events(events => events.DeleteColumn("onDeleteColumn"))
            )
             

DeleteColumn(System.Func)

Defines the handler of the DeleteColumn client-side event. Triggered when a column will be deleted. Introduced in the 2017 Q1 release.

For more information see DeleteColumn event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                       .Name("spreadsheet")
                       .Events(events => events.DeleteColumn(@<text>
                           function(e) {
                           // Handle the DeleteColumn event
                           }
                           </text>)
                        )
            )
             

DeleteRow(System.String)

Defines the handler of the DeleteRow client-side event. Triggered when a row will be deleted. Introduced in the 2017 Q1 release.

For more information see DeleteRow event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the DeleteRow event.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                        .Name("spreadsheet")
                        .Events(events => events.DeleteRow("onDeleteRow"))
            )
             

DeleteRow(System.Func)

Defines the handler of the DeleteRow client-side event. Triggered when a row will be deleted. Introduced in the 2017 Q1 release.

For more information see DeleteRow event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                       .Name("spreadsheet")
                       .Events(events => events.DeleteRow(@<text>
                           function(e) {
                           // Handle the DeleteRow event
                           }
                           </text>)
                        )
            )
             

InsertColumn(System.String)

Defines the handler of the InsertColumn client-side event. Triggered when a column will be inserted. Introduced in the 2017 Q1 release.

For more information see InsertColumn event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the InsertColumn event.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                        .Name("spreadsheet")
                        .Events(events => events.InsertColumn("onInsertColumn"))
            )
             

InsertColumn(System.Func)

Defines the handler of the InsertColumn client-side event. Triggered when a column will be inserted. Introduced in the 2017 Q1 release.

For more information see InsertColumn event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                       .Name("spreadsheet")
                       .Events(events => events.InsertColumn(@<text>
                           function(e) {
                           // Handle the InsertColumn event
                           }
                           </text>)
                        )
            )
             

InsertRow(System.String)

Defines the handler of the InsertRow client-side event. Triggered when a row will be inserted. Introduced in the 2017 Q1 release.

For more information see InsertRow event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the InsertRow event.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                        .Name("spreadsheet")
                        .Events(events => events.InsertRow("onInsertRow"))
            )
             

InsertRow(System.Func)

Defines the handler of the InsertRow client-side event. Triggered when a row will be inserted. Introduced in the 2017 Q1 release.

For more information see InsertRow event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                       .Name("spreadsheet")
                       .Events(events => events.InsertRow(@<text>
                           function(e) {
                           // Handle the InsertRow event
                           }
                           </text>)
                        )
            )
             

Select(System.String)

Defines the handler of the Select client-side event. Triggered when the Spreadsheet selection is changed. Introduced in the 2017 Q1 release.

For more information see Select event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the Select event.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                        .Name("spreadsheet")
                        .Events(events => events.Select("onSelect"))
            )
             

Select(System.Func)

Defines the handler of the Select client-side event. Triggered when the Spreadsheet selection is changed. Introduced in the 2017 Q1 release.

For more information see Select event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                       .Name("spreadsheet")
                       .Events(events => events.Select(@<text>
                           function(e) {
                           // Handle the Select event
                           }
                           </text>)
                        )
            )
             

ChangeFormat(System.String)

Defines the handler of the ChangeFormat client-side event. Triggered when the range format is changed from the UI. Introduced in the 2017 Q1 release.

For more information see ChangeFormat event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the ChangeFormat event.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                        .Name("spreadsheet")
                        .Events(events => events.ChangeFormat("onChangeFormat"))
            )
             

ChangeFormat(System.Func)

Defines the handler of the ChangeFormat client-side event. Triggered when the range format is changed from the UI. Introduced in the 2017 Q1 release.

For more information see ChangeFormat event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                       .Name("spreadsheet")
                       .Events(events => events.ChangeFormat(@<text>
                           function(e) {
                           // Handle the ChangeFormat event
                           }
                           </text>)
                        )
            )
             

Changing(System.String)

Defines the handler of the Changing client-side event. Triggered when a value or validation in the Spreadsheet is about to be changed upon user interaction.

For more information see Changing event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the Changing event.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                        .Name("spreadsheet")
                        .Events(events => events.Changing("onChanging"))
            )
             

Changing(System.Func)

Defines the handler of the Changing client-side event. Triggered when a value or validation in the Spreadsheet is about to be changed upon user interaction.

For more information see Changing event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                       .Name("spreadsheet")
                       .Events(events => events.Changing(@<text>
                           function(e) {
                           // Handle the Changing event
                           }
                           </text>)
                        )
            )
             

Change(System.String)

Defines the handler of the Change client-side event. Triggered when a value in the Spreadsheet has been changed. Introduced in the 2016.Q1.SP1 release.

For more information see Change event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the Change event.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                        .Name("spreadsheet")
                        .Events(events => events.Change("onChange"))
            )
             

Change(System.Func)

Defines the handler of the Change client-side event. Triggered when a value in the Spreadsheet has been changed. Introduced in the 2016.Q1.SP1 release.

For more information see Change event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                       .Name("spreadsheet")
                       .Events(events => events.Change(@<text>
                           function(e) {
                           // Handle the Change event
                           }
                           </text>)
                        )
            )
             

Render(System.String)

Defines the handler of the Render client-side event. Triggered after the widget has completed rendering. The event will also fire when a cell is selected or when the Spreadsheet's tools (bold, italic) are used, as the target element is re-generated with new styles (e.g background-color, box-shadow, font-weight, etc.).

For more information see Render event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the Render event.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                        .Name("spreadsheet")
                        .Events(events => events.Render("onRender"))
            )
             

Render(System.Func)

Defines the handler of the Render client-side event. Triggered after the widget has completed rendering. The event will also fire when a cell is selected or when the Spreadsheet's tools (bold, italic) are used, as the target element is re-generated with new styles (e.g background-color, box-shadow, font-weight, etc.).

For more information see Render event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                       .Name("spreadsheet")
                       .Events(events => events.Render(@<text>
                           function(e) {
                           // Handle the Render event
                           }
                           </text>)
                        )
            )
             

ExcelExport(System.String)

Defines the handler of the ExcelExport client-side event. Fires when the user clicks the Export to Excel toolbar button.

For more information see ExcelExport event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the ExcelExport event.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                        .Name("spreadsheet")
                        .Events(events => events.ExcelExport("onExcelExport"))
            )
             

ExcelExport(System.Func)

Defines the handler of the ExcelExport client-side event. Fires when the user clicks the Export to Excel toolbar button.

For more information see ExcelExport event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                       .Name("spreadsheet")
                       .Events(events => events.ExcelExport(@<text>
                           function(e) {
                           // Handle the ExcelExport event
                           }
                           </text>)
                        )
            )
             

ExcelImport(System.String)

Defines the handler of the ExcelImport client-side event. Fired when the user imports a file after selecting it from the window prompt. The event is fired before the file importing has finished.

For more information see ExcelImport event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the ExcelImport event.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                        .Name("spreadsheet")
                        .Events(events => events.ExcelImport("onExcelImport"))
            )
             

ExcelImport(System.Func)

Defines the handler of the ExcelImport client-side event. Fired when the user imports a file after selecting it from the window prompt. The event is fired before the file importing has finished.

For more information see ExcelImport event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                       .Name("spreadsheet")
                       .Events(events => events.ExcelImport(@<text>
                           function(e) {
                           // Handle the ExcelImport event
                           }
                           </text>)
                        )
            )
             

PdfExport(System.String)

Defines the handler of the PdfExport client-side event. Fired when the user initiates the export to PDF.

For more information see PdfExport event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the PdfExport event.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                        .Name("spreadsheet")
                        .Events(events => events.PdfExport("onPdfExport"))
            )
             

PdfExport(System.Func)

Defines the handler of the PdfExport client-side event. Fired when the user initiates the export to PDF.

For more information see PdfExport event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                       .Name("spreadsheet")
                       .Events(events => events.PdfExport(@<text>
                           function(e) {
                           // Handle the PdfExport event
                           }
                           </text>)
                        )
            )
             

Copy(System.String)

Defines the handler of the Copy client-side event. Fired when a range of a sheet is about to be copied.

For more information see Copy event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the Copy event.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                        .Name("spreadsheet")
                        .Events(events => events.Copy("onCopy"))
            )
             

Copy(System.Func)

Defines the handler of the Copy client-side event. Fired when a range of a sheet is about to be copied.

For more information see Copy event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                       .Name("spreadsheet")
                       .Events(events => events.Copy(@<text>
                           function(e) {
                           // Handle the Copy event
                           }
                           </text>)
                        )
            )
             

Cut(System.String)

Defines the handler of the Cut client-side event. Fired when a range of a sheet is about to be cut.

For more information see Cut event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the Cut event.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                        .Name("spreadsheet")
                        .Events(events => events.Cut("onCut"))
            )
             

Cut(System.Func)

Defines the handler of the Cut client-side event. Fired when a range of a sheet is about to be cut.

For more information see Cut event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                       .Name("spreadsheet")
                       .Events(events => events.Cut(@<text>
                           function(e) {
                           // Handle the Cut event
                           }
                           </text>)
                        )
            )
             

Paste(System.String)

Defines the handler of the Paste client-side event. Fired when a data is about to be pasted in a sheet.

For more information see Paste event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the Paste event.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                        .Name("spreadsheet")
                        .Events(events => events.Paste("onPaste"))
            )
             

Paste(System.Func)

Defines the handler of the Paste client-side event. Fired when a data is about to be pasted in a sheet.

For more information see Paste event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                       .Name("spreadsheet")
                       .Events(events => events.Paste(@<text>
                           function(e) {
                           // Handle the Paste event
                           }
                           </text>)
                        )
            )
             

DataBinding(System.String)

Defines the handler of the DataBinding client-side event. Fired when the data retrieved from a DataSource is about to be bound to a sheet. Available only if DataSource has been defined for at least one sheet.

For more information see DataBinding event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the DataBinding event.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                        .Name("spreadsheet")
                        .Events(events => events.DataBinding("onDataBinding"))
            )
             

DataBinding(System.Func)

Defines the handler of the DataBinding client-side event. Fired when the data retrieved from a DataSource is about to be bound to a sheet. Available only if DataSource has been defined for at least one sheet.

For more information see DataBinding event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                       .Name("spreadsheet")
                       .Events(events => events.DataBinding(@<text>
                           function(e) {
                           // Handle the DataBinding event
                           }
                           </text>)
                        )
            )
             

DataBound(System.String)

Defines the handler of the DataBound client-side event. Fired when the data from a DataSource is already populated in a sheet. Available only if DataSource has been defined for at least one sheet.

For more information see DataBound event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the DataBound event.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                        .Name("spreadsheet")
                        .Events(events => events.DataBound("onDataBound"))
            )
             

DataBound(System.Func)

Defines the handler of the DataBound client-side event. Fired when the data from a DataSource is already populated in a sheet. Available only if DataSource has been defined for at least one sheet.

For more information see DataBound event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

Example

Razor
 
             @( Html.Kendo().Spreadsheet()
                       .Name("spreadsheet")
                       .Events(events => events.DataBound(@<text>
                           function(e) {
                           // Handle the DataBound event
                           }
                           </text>)
                        )
            )
             

KendoKeydown(System.String)

Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the Spreadsheet is focused.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see KendoKeydown event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the KendoKeydown event.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .

KendoKeydown(System.Func)

Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the Spreadsheet is focused.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see KendoKeydown event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of SpreadsheetEventBuilder .