Support for ASP MVC 3 for editing multiple lines

I was wondering if ASP MVC 3 has built-in support for editing multiple lines? I found some examples of ASP MVC 2 that float around, but nothing for v3. I am using Entify Framework 4 as source code. Suppose you have

public class Order { public List<OderLine> OrderLines { get; set; } } public class OrderLine { public int Id {get; set;} public bool Checked {get; set;} public int Amount {get; set;} public int Name {get; set;} } 

Creating or editing an order should be presented in the form of a header with information about the order, and then a table with rows, where each row can be changed or deleted, and new lines can be filled.

+4
source share
1 answer

ASP.NET MVC does not have built-in support for such things. It supports models, views, controllers, and a couple of HTML helpers. From there, you can implement whatever you want. You can check the MvcContrib Grid or Telerik Grid to create something nice that allows you to receive CRUD data.

There is also a WebGrid helper , which is part of WebMatrix, but this is something that I personally don’t like and do not recommend, but some people find it useful, so check as well.

+1
source

Source: https://habr.com/ru/post/1345460/


All Articles