Hi!
I try to use grid created by javascript. Transport for create is:
var transport = {
create: {
url: "@Url.Action("Create", "Pledge")",
contentType: "application/json; charset=utf-8",
dataType: "jsonp"
}
};
For create method I use MVC4 Action something like this:
public ActionResult Create([DataSourceRequest] DataSourceRequest request, [Bind(Prefix = "models")]IEnumerable<MyModel> models).
In models I have created elements. But all of this elements are empty. Can anyone help me with this issue?
Maybe I need to change type of transport create or something like this?
I try to use grid created by javascript. Transport for create is:
var transport = {
create: {
url: "@Url.Action("Create", "Pledge")",
contentType: "application/json; charset=utf-8",
dataType: "jsonp"
}
};
For create method I use MVC4 Action something like this:
public ActionResult Create([DataSourceRequest] DataSourceRequest request, [Bind(Prefix = "models")]IEnumerable<MyModel> models).
In models I have created elements. But all of this elements are empty. Can anyone help me with this issue?
Maybe I need to change type of transport create or something like this?