This question is locked. New answers and comments are not allowed.
I have a basic master detail scenario I am trying to develop using the Telerik controls for ASP.NET MVC 2. I've been trying to figure out the recommended pattern for accomplishing this, but I am still unclear as to the best way to attack the problem.
I would like to have allow my users to add an order by entering the data in a single screen. On this screen they would have fields for all the basic order information (Description, Address, etc) they would also have a grid on the same screen that would allow them to add the line items to the order (Item Number, Quantity, etc). Once they are done, they would save the order and they data for both the Order and the LineItems would be saved to the database.
Seems simple enough.
The real trick is that I don't want to save the order first, then add the items to the order. This all needs to happen in a single post to the server. Phil Haack has a blog post describing how you can bind a collection of items. This seems like it would do what I need, but is this a good path to take while using the Telerik Grid? I'm not seeing how these methods mesh well together...
This scenario seems fairly common, what am I missing? How would you attack this problem?
I would like to have allow my users to add an order by entering the data in a single screen. On this screen they would have fields for all the basic order information (Description, Address, etc) they would also have a grid on the same screen that would allow them to add the line items to the order (Item Number, Quantity, etc). Once they are done, they would save the order and they data for both the Order and the LineItems would be saved to the database.
Seems simple enough.
The real trick is that I don't want to save the order first, then add the items to the order. This all needs to happen in a single post to the server. Phil Haack has a blog post describing how you can bind a collection of items. This seems like it would do what I need, but is this a good path to take while using the Telerik Grid? I'm not seeing how these methods mesh well together...
This scenario seems fairly common, what am I missing? How would you attack this problem?