This question is locked. New answers and comments are not allowed.
Hey guys,
I am trying to persist client side filters to my code that exports data to a csv file. I found several examples that utilize the 'ToGridModel' extension method including an entire sample project. Here is my code that utilizes it:
IEnumerable<EmployeeReferral> getAll = queue.ShowEmployeeReferralQueue(gfo).ToGridModel(page, 10, orderBy, filter).Data;
'ShowEmployeeReferralQueue' returns an IQueryable. The problem is that this won't even compile. I'm getting an error that says 'No overload for method 'ToGridModel' takes 4 arguments'.
The data types in the parameters are int,int, string, string so it should work. Any ideas?
Thanks,
mdk
P.S. Yes, I do have 'using Telerik.Web.Mvc.Extensions;' in place.
I am trying to persist client side filters to my code that exports data to a csv file. I found several examples that utilize the 'ToGridModel' extension method including an entire sample project. Here is my code that utilizes it:
IEnumerable<EmployeeReferral> getAll = queue.ShowEmployeeReferralQueue(gfo).ToGridModel(page, 10, orderBy, filter).Data;
'ShowEmployeeReferralQueue' returns an IQueryable. The problem is that this won't even compile. I'm getting an error that says 'No overload for method 'ToGridModel' takes 4 arguments'.
The data types in the parameters are int,int, string, string so it should work. Any ideas?
Thanks,
mdk
P.S. Yes, I do have 'using Telerik.Web.Mvc.Extensions;' in place.