Skip to main content
.NET Framework 4.6.2+
  • The page you are viewing does not exist in the .NET 8.0+ platform documentation. This link will take you to the parent topic of the current section.

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.v24.2.dll

NuGet Package: DevExpress.ExpressApp.Web

Declaration

public static void AssignClientHandlerSafe(
    ASPxWebControl editor,
    string eventName,
    string script,
    string key
)

Parameters

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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AssignClientHandlerSafe(ASPxWebControl, String, String, String) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also