2

I have (for example) these two objects:

class Customer
{
    public int Id { get; set; }
    public string Name { get; set; }
    public string Address { get; set; }
    ...
    public List<Order> Orders;
}

class Order
{
    public int Id { get; set; }
    public string Description { get; set; }
    ...
}

I want one View on which you can edit the Customer data (that part is already working fine), but I want some kind of 'dynamic grid' to add/remove/update orders on the same page.

How can you do this? With jQuery you can add or remove html controls, but to add or remove an Order object with it? Any ideas?

thanks,

Filip

1 Answer 1

2

I would recommend you checking out the following blog post from Steve Sanderson which illustrates a nice technique which could be used for editing a variable length list in ASP.NET MVC 2.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.