Been using Telerik RadGrid for quite a while, but ran into a problem that I just can't figure out.
I'm using OpenAccess - and have successfully created a working set of persistent classes.
I want to do an "inner join" to flatten the dataset, and was using LINQ (which seemed like the easiest way to do it).
On NeedsDatasource event I set the datasource to a "generic RadGrid" with column names set to autogenerate:
This works great. Really fast, and I can do paging, sorting and grouping - and the column names get picked up automatically from the query. However, when I use the Filter in the RadGrid UI, nothing happens.
What am I doing wrong?
I've already tried this using an OpenAccess datasource and it does work - including filtering. But, its much more tedious (and slow). Would love to figure out how to get filtering to work with the LINQ query above.
Thanks.
I'm using OpenAccess - and have successfully created a working set of persistent classes.
I want to do an "inner join" to flatten the dataset, and was using LINQ (which seemed like the easiest way to do it).
On NeedsDatasource event I set the datasource to a "generic RadGrid" with column names set to autogenerate:
RadGrid1.DataSource = from x in OtogramContext.ObjectScope().Extent<Otogram>() |
select new |
{ |
Patient = x.patient.name, |
Physician = x.physicianName, |
HearingLoss = x.AMAHearingScore, |
Clinic = x.clinicName, |
Customer = x.customerID |
}; |
This works great. Really fast, and I can do paging, sorting and grouping - and the column names get picked up automatically from the query. However, when I use the Filter in the RadGrid UI, nothing happens.
What am I doing wrong?
I've already tried this using an OpenAccess datasource and it does work - including filtering. But, its much more tedious (and slow). Would love to figure out how to get filtering to work with the LINQ query above.
Thanks.