aspnetmvc-devexpress-dot-web-dot-mvc-dot-callbackpanelsettings.md
Defines the callback routing logic by specifying the names of a Controller and an Action which should handle callbacks.
Namespace : DevExpress.Web.Mvc
Assembly : DevExpress.Web.Mvc5.v25.2.dll
NuGet Package : DevExpress.Web.Mvc5
public object CallbackRouteValues { get; set; }
Public Property CallbackRouteValues As Object
| Type | Description |
|---|---|
| Object |
An object containing the Controller and Action names.
|
The CallbackRouteValues property allows you to pass only simple data (that do not require serialization) to the controller. If you need to send complex data, use one of the following approaches.
@Html.DevExpress().CallbackPanel(settings => {
settings.Name = "CallbackPanel";
...
settings.CallbackRouteValues = new {
Controller = "Home",
Action = "IndexPartial",
myComplexData = Json.Encode(Model.myListData)
};
}).GetHtml()
public ActionResult IndexPartial(string SelectedIds) {
List<int> myData = System.Web.Helpers.Json.Decode<List<int>>(myComplexData);
...
}
See Also