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

Thread is closed for posting
3 posts, 0 answers
  1. Craig Shearer
    Craig Shearer avatar
    1 posts
    Member since:
    May 2010

    Posted 31 Mar 2012 Link to this post

    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. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 01 Apr 2012 Link to this post

    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!
  3. Ross
    Ross avatar
    11 posts
    Member since:
    Aug 2012

    Posted 06 Sep 2012 Link to this post

    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?
Back to Top