This question is locked. New answers and comments are not allowed.
Hi guys,
I'm looking for some help in creating a master detail view whereby I can inline edit the details within a single view of the master.
I've seen the master detail grid example but that isn't exactly what I'm after.
Here is my scenario:
I have an Order screen which has a one to many relationship with OrderDetails. From a list of orders, the user will Edit an individual order and that edit view will show the list of order detail items. I want the user to be able to insert/edit an individual order item and then save the order as a whole.
So basically the model is:
Has anyone else pulled this off or are there any additional samples out there?
I'm looking for some help in creating a master detail view whereby I can inline edit the details within a single view of the master.
I've seen the master detail grid example but that isn't exactly what I'm after.
Here is my scenario:
I have an Order screen which has a one to many relationship with OrderDetails. From a list of orders, the user will Edit an individual order and that edit view will show the list of order detail items. I want the user to be able to insert/edit an individual order item and then save the order as a whole.
So basically the model is:
public class Order}
{
[Key]
public int OrderID { get; set; }
public virtual ICollection<OrderItem> OrderItems{ get; set; }
public class OrderItem}
{
[Key]
public int OrderItemID { get; set; } public virtual Product Product { get; set; }public int Quantity { get; set; }public virtual Order Order{ get; set; }
Has anyone else pulled this off or are there any additional samples out there?