The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
The page you are viewing does not exist in the .NET Standard 2.0+ platform documentation. This link will take you to the parent topic of the current section.
.NET Core 3.0+
The page you are viewing does not exist in the .NET Core 3.0+ platform documentation. This link will take you to the parent topic of the current section.

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

Declaration

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

Parameters

Name Type Description
action ActionBase

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