SupportClientScriptsExtensions.SetClientScript(ISupportClientScripts, String, Boolean) Method

Assigns a JavaScript code to the current Action. This code will be executed in a browser when a user clicks the Action.

Namespace: DevExpress.ExpressApp.Actions

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

Syntax

public static void SetClientScript(
    this ISupportClientScripts action,
    string script,
    bool processOnServer
)

Parameters

Type Name Description
DevExpress.ExpressApp.Actions.ISupportClientScripts action

An ISupportClientScript object specifying an Action.

String script

A string specifying the JavaScript code to be executed when a user clicks the current Action.

Boolean processOnServer

true, if the Action should be processed on the server in addition to the JavaScript execution; otherwise, false.

See Also