开发者

ASP MVC 3 support for multiple row editing

I was wondering if ASP MVC 3 has in-built support for editing multiple rows? I've found a fair bit of ASP MVC 2 examples floating around, but nothing for v3. I'm using Entify Framework 4 as the back-end. Suppose you have a

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 as a header with the order info and then a table with the lines, where each line can be changed, or deleted, and new rows can b开发者_Python百科e filled out.


ASP.NET MVC has no built-in support for such things. It has support for Models, Views, Controllers and a couple of HTML helpers. From there you can implement everything you want. You may checkout the MvcContrib Grid or Telerik Grid for creating nice looking grid components allowing you to CRUD data.

There's also the WebGrid helper which is part of WebMatrix but this is something that I personally don't like and wouldn't recommend but some people find it useful so worth checking out as well.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜