Hi, I have seen this error in a number of threads on the forum, none of which seem to be caused by the same thing as I am trying.
All it amounts to is using the same 'Id' column in the expressions for both a custom command routing value and the datasource server() model id mapping. I dont really understand why using the id in these two places should cause this problem?
@(Html.Kendo().Grid(Model.DetailRecords).Name("MyGrid")
.Columns(columns =>
{
columns.Command(commands => commands.Custom("View").Action("Index", "Detail")
.DataRouteValues(rv => rv.Add(m => m.Id)));
columns.Bound(m => m.Heading);
})
.DataSource(ds => ds.Server().Model(model => model.Id(m => m.Id)))
)
If this is a bug, is there a work around I can use?
Thanks,
Gavin