I have a parent/child grid which correctly displays the child table and is working for both Read & Create. However, Update and Delete don't pass the Id in the URL as I can see from the console.
This is what I see in the console:
The DELETE should be passing the Id of the row.
.DataSource(dataSource => dataSource
.Ajax()
.Model(model =>
{
model.Id(g => g.id);
model.Field(g => g.id).Editable(false);
model.Field(g => g.user_id);
model.Field(g => g.group_id);
})
.Create(c => c.Url("http://localhost:808/api/UserGroup").Type(HttpVerbs.Post))
.Update(update => update.Url("http://localhost:808/api/UserGroup").Type(HttpVerbs.Put))
.Destroy(destroy => destroy.Url("http://localhost:808/api/UserGroup").Type(HttpVerbs.Delete))
)
OPTIONS http://localhost:808/api/UserGroup 405 (Method Not Allowed) jquery.min.js:2
OPTIONS http://localhost:808/api/UserGroup 405 (Method Not Allowed) jquery.min.js:2
DELETE http://localhost:808/api/UserGroup 404 (Not Found) UserGroup:1
XHR finished loading: "http://localhost:808/api/UserGroup".