This question is locked. New answers and comments are not allowed.
Hello,
We are trying to add post filtering of the data that is sent to the grid via ajax.
Something like this:
ActionResult Action(GridCommand command)
{
var data = (IQueryable)repository.GetAll();
IQueryable tmpData = ToQueryable(data, command);
IEnumerable postFilteredData = tmpData.Select(....);
return View(new GridModel
{
Data = postFilteredData
});
}
For this to accomplish we need an IQueryable object after the internal Grid filtering. It will be great if you can add a new extension in Telerik.Web.MVC.Extensions.
The extension should be like the following, but to return IQueryable instead, just like the second group.
public static GridModel ToGridModel(queryable, page, pageSize, sortDescriptors, filterDescriptors, groupDescriptors);
public static IQueryable ToQueryable(queryable, gridCommand);
or
public static IQueryable ToQueryable(queryable, page, pageSize, sortDescriptors, filterDescriptors, groupDescriptors);
Thank you in advance!
We are trying to add post filtering of the data that is sent to the grid via ajax.
Something like this:
ActionResult Action(GridCommand command)
{
var data = (IQueryable)repository.GetAll();
IQueryable tmpData = ToQueryable(data, command);
IEnumerable postFilteredData = tmpData.Select(....);
return View(new GridModel
{
Data = postFilteredData
});
}
For this to accomplish we need an IQueryable object after the internal Grid filtering. It will be great if you can add a new extension in Telerik.Web.MVC.Extensions.
The extension should be like the following, but to return IQueryable instead, just like the second group.
public static GridModel ToGridModel(queryable, page, pageSize, sortDescriptors, filterDescriptors, groupDescriptors);
public static IQueryable ToQueryable(queryable, gridCommand);
or
public static IQueryable ToQueryable(queryable, page, pageSize, sortDescriptors, filterDescriptors, groupDescriptors);
Thank you in advance!