Hi @fabricio.murta
I use code something like this:
var treePanel1 =
new TreePanel
{
ID = "treeId",
Border = false,
RootVisible = false,
Layout = LayoutType.Fit.ToString(),
Header = false,
Store =
{
new TreeStore
{
ID = "storeId",
ShowWarningOnFailure = true,
AutoLoad = true,
Proxy =
{
new RestProxy
{
Url = "/{0}/{1}".FormatWith("controllerName", "readActionName"),
ActionMethods =
{
Read = HttpMethod.POST,
Create = HttpMethod.POST,
Update = HttpMethod.POST,
Destroy = HttpMethod.DELETE
},
API =
{
Read = "/{0}/{1}".FormatWith("controllerName", "readActionName"),
Create = "/{0}/{1}".FormatWith("controllerName", "createActionName"),
Update = "/{0}/{1}".FormatWith("controllerName", "updateActionName"),
Destroy = "/{0}/{1}".FormatWith("controllerName", "destroyActionName")
},
Reader =
{
new JsonReader()
},
Writer =
{
new JsonWriter
{
RootProperty = "data",
AllowSingle = true,
ClientIdProperty = "ID",
WriteAllFields = true,
Encode = true
}
}
}
}
}
},
};
This is MVC application. And I want to correct the raw response (string containing JSON) from server before it will be deserialized to Model. Yes I want callback handling for success response. But I was not able to find appropriate listeners or events or methods in JsonProxy and JsonReader classes.
Could you please provide an example or link to example with response processing?
Thanks!