SpreadsheetBuilder.ClientSideEvents(Action<SpreadsheetClientSideEventsBuilder>) Method
Allows you to assign event handlers to client-side events available for the Spreadsheet.
Namespace: DevExpress.AspNetCore.Spreadsheet
Assembly: DevExpress.AspNetCore.Spreadsheet.v24.1.dll
NuGet Package: DevExpress.AspNetCore.Spreadsheet
Declaration
public SpreadsheetBuilder ClientSideEvents(
Action<SpreadsheetClientSideEventsBuilder> configure
)
Parameters
Name | Type | Description |
---|---|---|
configure | Action<SpreadsheetClientSideEventsBuilder> | A method that assigns event handlers. |
Returns
Type | Description |
---|---|
SpreadsheetBuilder | An object that can be used to further configure the Spreadsheet. |
Remarks
@(Html.DevExpress()
.Spreadsheet("spreadsheet")
.Height("500px")
.Width("100%")
.DocumentRequestHandlerUrl(Url.Action("DxDocumentRequest"))
.Open(documentPath)
.ShowSheetTabs(false)
.ClientSideEvents(events => {
events.OnCellBeginEdit("onCellBeginEdit");
events.OnCellEndEdit("onCellEndEdit");
events.OnCellCancelEdit("onCellCancelEdit");
events.OnDocumentChanged("onDocumentChanged");
events.OnBeginSynchronization("onBeginSynchronization");
events.OnEndSynchronization("onEndSynchronization");
events.OnHyperlinkClick("onHyperlinkClick");
events.OnSelectionChanged("onSelectionChanged");
events.OnCustomCommandExecuted("onCustomCommandExecuted");
})
)
See Also