Filtering a Grid of Data in ASP.NET MVC
This article is the fourth installment in an ongoing series on displaying a grid of data in an ASP.NET MVC application.
The previous two articles in this series - Sorting a Grid of Data in ASP.NET MVC and
Displaying a Paged Grid of Data in ASP.NET MVC - showed how to sort and page data in a grid.
This article explores how to present a filtering interface to the user and then only show those records that conform to the filtering criteria.
In particular, the demo we examine in this installment presents an interface with three filtering criteria: the category, minimum price, and whether to omit
discontinued products. Using this interface the user can apply one or more of these criteria, allowing a variety of filtered displays. For example, the user could opt
to view: all products in the Condiments category; those products in the Confections category that cost $50.00 or more; all products that cost $25.00 or more and
are not discontinued; or any other such combination.
Like with its predecessors, this article offers step-by-step instructions and includes a complete, working demo available for download at the end of the article.
Read on to learn more!
Read More >