MVC 4 Equivalent of Angular Filter By

104 Views Asked by At

In angular we can filter results client side based on a search bar text input. (I believe by using something called 'filter by' but I don't remember.) Is there an equivalent structure for this in MVC 4?

I understand I can write the following:

@foreach (var item in Model.OrderBy(i => i.Attribute)){

    ... //Print ordered items.

}

Every search I've looked at shows how to do this but by posting the attribute/property to the controller. I'm looking to do this dynamically client side only if possible.

0

There are 0 best solutions below