In short i want the following grouping functionality: http://demos.telerik.com/aspnet-mvc/grid/index However, I cannot seem to figure out how to enable my back end to retrieve this data dynamically.
I have the following line:
query.UnderlyingCriteria.SetProjection(Projections.GroupProperty("PropertyNumber"));
Where query is of type IQueryOver.
However, when I use
var statistics = query.List<T>();
I get
"The value \"000000\" is not of type \"SDS" and cannot be used in this generic collection.\r\nParameter name: value"}
000000 is a default property number, and SDS is the object I'm attempting to group. It is obvious to me that what I've written is attempting to cast strings back as the value.
Interestingly the following returns the exact count of rows in the table.
var rowCount = query.RowCount();
My question then, is how do I actually return SDS in a grouped manner, if the projection cannot do what I want?