Hi,
I'm trying to use KendoGrid server-side logic for grouping grid data with the help of ToDataSourceResult extension.
public class User
{
public int UserID;
public string UserName;
public int UserType;
public ComplexID complexID;
}
public class ComplexID
{
public string cID;
public string Description;
}
I have a list of users:
var userLst = new List<User>{usr1, usr2, usr3};
I'm trying to group the users to be displayed in the KendoGrid:
var kendoData = userLst.AsQueryable().ToDataSourceResult(kendoRequest);
If I group by UserType, everything works fine. My question is how can I group the data by complexID.cID? What should I specify in kendoRequest?
Thank you.
I'm trying to use KendoGrid server-side logic for grouping grid data with the help of ToDataSourceResult extension.
public class User
{
public int UserID;
public string UserName;
public int UserType;
public ComplexID complexID;
}
public class ComplexID
{
public string cID;
public string Description;
}
I have a list of users:
var userLst = new List<User>{usr1, usr2, usr3};
I'm trying to group the users to be displayed in the KendoGrid:
var kendoData = userLst.AsQueryable().ToDataSourceResult(kendoRequest);
If I group by UserType, everything works fine. My question is how can I group the data by complexID.cID? What should I specify in kendoRequest?
Thank you.