ActionBaseExtensions.GetProcessActionOnServerScript(ActionBase) Method

Returns a script to be processed on an Action execution on the server-side.

Namespace: DevExpress.ExpressApp.Actions

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

Declaration

public static string GetProcessActionOnServerScript(
    this ActionBase action
)
<ExtensionAttribute>
Public Shared Function GetProcessActionOnServerScript(
    action As ActionBase
) As String

Parameters

Type Name Description
ActionBase action

An Action on whose execution, a client script will be executed.

Returns

Type Description
String

A string that is a script to be processed on an Action execution on the server-side.

Remarks

If you want to execute your script and then process the Action on the server-side, call the GetProcessActionOnServerScript method and add the result to your script registration:

singleChoiceAction.RegisterClientScriptOnExecute("AlertScriptWithProcessOnServer", @"  
    DevExpress.ui.notify({   
        closeOnClick: true,   
        message: 'ClientSideAction are executed. Selected item: ' + actionParameter.text,  
        type: 'info'   
});" + singleChoiceAction.GetProcessActionOnServerScript());
See Also