ClientSideEventsHelper.AssignClientHandlerSafe(ASPxWebControl, String, String, String) Method

Assigns the handler script to specified client-side event. Allows you to assign multiple scripts to the same event. Each new script is correctly concatenated with scripts that were added previously.

Namespace: DevExpress.ExpressApp.Web.Utils

Assembly: DevExpress.ExpressApp.Web.v18.2.dll

Declaration

public static void AssignClientHandlerSafe(
    ASPxWebControl editor,
    string eventName,
    string script,
    string key
)
Public Shared Sub AssignClientHandlerSafe(
    editor As ASPxWebControl,
    eventName As String,
    script As String,
    key As String
)

Parameters

Type Name Description
ASPxWebControl editor

An ASPxWebControl object specifying the target control.

String eventName

A string specifying the name of the editor control's client-side event to be handled.

String script

A string specifying either the name of a JavaScript function or the entire JavaScript function code used to handle an event.

String key

A string specifying the identifier of the script. If the script with the same identifier was added to the eventName event previously, then the existing script is overridden. If the identifier is unique, then the new script is added.

See Also