views:

42

answers:

1

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?

+1  A: 

Here is a great blog on the subject

http://blogs.teamb.com/craigstuntz/tag/jqgrid/

John Hartsock