This is a migrated thread and some comments may be shown as answers.

Subgrid Edit

0 Answers 82 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Veteran
Jeff asked on 28 Sep 2012, 06:47 PM
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.

Edit your post Reply

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Jeff
Top achievements
Rank 1
Veteran
Share this question
or