The Master grid is Customers and the Detail grid is a Customers Orders. Using the EditorTemplate, I have the Model working just fine for updates but when it comes to inserting new records I’m at a loss.
The CustomerId is not being passed, in any way that I can see, to the UserControl. So new Orders are being created with a CustomerId of 0.
The Orders table has a unique key on CustomerId and Order # and OrdersId is primary. I need to create a new Customer Order record entering the Order # but the Customer # needs to be provided to the form.
I am obviously missing something and certainly don’t see any help on the Telerik site when it comes to their grid and MVC.
Any help would be greatly appreciated!
The record id is always returned as “id” and must be coded that way.
In the case above the Master record would be updated. For child records, the record id returned is the masters… allowing you to insert the new record with the master id.