This question is locked. New answers and comments are not allowed.
Hi,
I am using Custom Server Binding to a DataTable containing results from a database query. I am trying to add grouping to the grid on a specific column but doing so gives me an exception:
Code for the grid (where Model.Data is of type System.Data.DataTable):
Query for the Data:
Is there something that I am missing in my code?
Thank you,
Kevin
I am using Custom Server Binding to a DataTable containing results from a database query. I am trying to add grouping to the grid on a specific column but doing so gives me an exception:
[ArgumentException: Property with specified name: Row[ID] cannot be found on type: System.Data.DataRowViewParameter name: propertyName] Telerik.Web.Mvc.Infrastructure.Implementation.Expressions.CustomTypeDescriptorExtensions.Property(ICustomTypeDescriptor typeDescriptor, String propertyName) +264 lambda_method(Closure , DataRowView ) +44...Code for the grid (where Model.Data is of type System.Data.DataTable):
Html.Telerik().Grid(Model.Data) .Name("Grid") .DataBinding(dataBinding => dataBinding.Server().Select("CustomServerBinding", "Grid") .Groupable(groupign => groupign.Groups(groups => groups.Add(o => o.Row["ID"])))Query for the Data:
SELECT ID, Value, Credit FROM ReportIs there something that I am missing in my code?
Thank you,
Kevin