All docs
V19.2
19.2
19.1
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

GanttSettings.CustomDataActionRouteValues Property

Defines the custom callback routing logic by specifying the names of a Controller and an Action which should handle custom data callbacks.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v19.2.dll

Declaration

public object CustomDataActionRouteValues { get; set; }
Public Property CustomDataActionRouteValues As Object

Property Value

Type Description
Object

An object that contains the Controller and Action names.

Remarks

Use the MVCxClientGantt.PerformCustomDataCallback(data) client method if you need to asynchronously go to the server (using AJAX-based callback technology) and perform server-side processing in the specified Action without updating (re-rendering) the Gantt after that. Using the CustomDataActionRouteValues method's data parameter, you can pass any information collected on the client to the server, for further server processing.

The MVCxClientGantt.PerformCustomDataCallback(data) client method posts back to the server using the callback technology and is handled in an Action specified by the CustomDataActionRouteValues property. Any data passed via the method's data parameter can be accessed on the server as a parameter of the specified Action. So, the necessary server-side actions can be performed in the handling Action based upon the value(s) passed from the client.

For instance, you can pass values as a hash table.

Client Script Code:

myGantt.PerformCustomDataCallback({key1: value});

Controller Code:

ActionResult MyAction(int key1){
    ...
}

The Gantt does not automatically update (re-render) itself after such a custom data callback has been sent and processed on the server.

If you need to perform a custom callback to the server that updates the Gantt, you can send this callback via the MVCxClientGantt.PerformCallback(data) client method and handle it in an Action specified using the CustomActionRouteValues property.

See Also