Hi,
I'm trying to implement grid filtering where my Data Sources is webapi.
I tried to follow the following: Take a Walk on the Client Side with WebAPI and WebForms – Part 2
The grid is working fine but I'm I having an issue when I'm trying to implement filtering, there is no GetNextPage() in the request in my ApiController
My project is an ASP.NET web forms project, .net 4.5
Here is my ApiController code:
I'm trying to implement grid filtering where my Data Sources is webapi.
I tried to follow the following: Take a Walk on the Client Side with WebAPI and WebForms – Part 2
The grid is working fine but I'm I having an issue when I'm trying to implement filtering, there is no GetNextPage() in the request in my ApiController
My project is an ASP.NET web forms project, .net 4.5
Here is my ApiController code:
[HttpGet]
public
PageResult<SecuHostUser> Load_Users(ODataQueryOptions<SecuHostUser> options)
{
var context =
new
ApplicationDbContext();
var users= context.Users.AsQueryable();
var results = options.ApplyTo(users);
return
new
PageResult<SecuHostUser>(results
as
IEnumerable<SecuHostUser>, Request.GetNextPageLink(), users.ToList().Count);
}