The requested page is not available for the requested platform. You are viewing the content for Default platform.

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.v19.1.dll


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


Name Type Description
editor ASPxWebControl

An ASPxWebControl object specifying the target control.

eventName String

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

script String

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

key String

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