I've defined a Grid on an aspx page in a MVC 3 project. The "Parent" (Customers) grid has inline editing which works fine. I defined a subgrid of the parent using the ClientDetailTemplateId.
That sub grid displays values just fine. I've also enabled Editing in the subgrid such as
.DataSource(ds => ds
.Ajax()
.Read(read => read.Action("GetCustomerAddresses", "Address", new { Customer = "#CustomerID#" }))
.Update(update => update.Action("UpdateAddress", "Address"))
.Create(update => update.Action("NewAddress", "Address"))
.Destroy(update => update.Action("DeleteAddress", "Address"))
.Model(model => model.Id(a => a.AddressID))
)
In the subgrid when I select the "Edit" button the row goes into editing mode fine, When I click the "Update" button, an error is thrown saying
http:.//localhost/Address/Create is not found 404 not found.
Why the Controller method "Create" is being called is completely beyond me.
That sub grid displays values just fine. I've also enabled Editing in the subgrid such as
.DataSource(ds => ds
.Ajax()
.Read(read => read.Action("GetCustomerAddresses", "Address", new { Customer = "#CustomerID#" }))
.Update(update => update.Action("UpdateAddress", "Address"))
.Create(update => update.Action("NewAddress", "Address"))
.Destroy(update => update.Action("DeleteAddress", "Address"))
.Model(model => model.Id(a => a.AddressID))
)
In the subgrid when I select the "Edit" button the row goes into editing mode fine, When I click the "Update" button, an error is thrown saying
http:.//localhost/Address/Create is not found 404 not found.
Why the Controller method "Create" is being called is completely beyond me.