Skip to main content

ASPxClientEvent<T>.RemoveHandler(handler) Method

Dynamically disconnects the event from the associated event handler function.

Declaration

RemoveHandler(
    handler: T
): void

Parameters

Name Type Description
handler T

An object representing the event handling function’s content.

Remarks

This method removes the handling function associated with a client-side event represented by the event object.

Typically, you provide handlers for a web control’s client-side events at design time by using the control’s ClientSideEvents property and a particular event’s EventHandlerBody or EventHandlerName properties. If needed, you can also dynamically assign a specific handler for an event with the help of the ASPxClientEvent.AddHandler method.

You can use the RemoveHandler method to manually disconnect an event from the associated handling function while operating on the client-side.

If you need to dynamically disconnect the event from all the associated event handler functions you can use the ASPxClientEvent.ClearHandlers method.

See Also