Reputation: 196459
I have an action that is tied to jqgrid filtering.
right now i have something like this.
public ActionResult GridData(GridData args)
{
IEnumerable<Car> car = model.GetCars();
// now i need to filter and return a Json object.
}
In my case i have a collection or car objects. Is there best practices to have filtering without having a big select case around each field?
Upvotes: 1
Views: 1457
Reputation: 86872
Here is a great blog on the subject
http://blogs.teamb.com/craigstuntz/tag/jqgrid/
Upvotes: 2