Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

SpreadsheetEvent<TEventArgs> Class

The event object used for client-side events.

#Declaration

TypeScript
class SpreadsheetEvent<TEventArgs extends EventArgs>

#Type Parameters

Name Type Description
TEventArgs EventArgs

An object that contain an event argument.

#Remarks

The SpreadsheetEvent class serves as the event object for events generated for web controls on the client-side.

#Methods

#addHandler(handler) Method

Dynamically connects the event with an appropriate event handler function.

#Declaration

TypeScript
addHandler(
    handler: any
): void

#Parameters

Name Type Description
handler any

An object that contains the event handler function.

#Remarks

Use the addHandler method to connect an event with a specific handler function on the client-side.

#clearHandlers Method

Dynamically disconnects the event from all the associated event handler functions.

#Declaration

TypeScript
clearHandlers(): void

#Remarks

Use the clearHandlers method to remove all the handler functions associated with the client-side event.

#fireEvent(source, args) Method

For internal use only.

#Declaration

TypeScript
fireEvent(
    source: Spreadsheet,
    args: TEventArgs
): void

#Parameters

Name Type Description
source Spreadsheet

The event source.

args TEventArgs

THe event argument.

#removeHandler(handler) Method

Dynamically disconnects the event from the associated event handler function.

#Declaration

TypeScript
removeHandler(
    handler: any
): void

#Parameters

Name Type Description
handler any

An object that contains the event handler function.

#Remarks

Use the removeHandler method to disconnect an event from the associated handler.