This is a migrated thread and some comments may be shown as answers.

How do I code an ASP.NET MVC controller action to receive a batch update?

2 Answers 199 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Craig Shearer
Top achievements
Rank 1
Craig Shearer asked on 31 Mar 2012, 10:15 AM
I'm playing with the data source example with remote binding (http://demos.kendoui.com/web/mvvm/remote-binding.html), and trying to get this to work with ASP.NET MVC3.

So, in my transport of my DataSource, I have this:

update: {
	url: crudServiceBaseUrl + "Admin/UpdateProducts",
	dataType: "json",
	type: "POST"
},

In my Controller, I have this code:

[AcceptVerbs(HttpVerbs.Post)]
public void UpdateProducts(List<Product> models)
{
			
}

which gets called, but models is always empty.

How do I do this?

2 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 01 Apr 2012, 12:05 PM
Hi,

 You can check the following github project which shows how to do that: https://github.com/telerik/kendo-examples-asp-net-mvc/tree/master/grid-crud

Greetings,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Ross
Top achievements
Rank 1
answered on 06 Sep 2012, 05:31 PM
The grid example does not work and throws a provider error when trying to display the list from the dbase.  Is there a working example of the grid project?
Tags
Data Source
Asked by
Craig Shearer
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Ross
Top achievements
Rank 1
Share this question
or