Skip to main content

SpreadsheetClientSideEventsBuilder Class

A builder that 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 class SpreadsheetClientSideEventsBuilder

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"); 
    }) 
)   

Inheritance

Object
SpreadsheetClientSideEventsBuilder
See Also