This article provides the source code to enable you to easily configure a web page containing multiple SELECT controls used to filter a collection of records (usually displayed in a grid or table). In the example, we use a collection of ficticious residential addresses representing homes for rent. The page will allow the user to filter this list by state, city, zip code, # of bedrooms and residence type.
The page relies on the data binding provided by Knockout.js library. This binding causes a change in a user's selection to be immediately reflected in the options available in the other controls. For example, if the user selects Philadelphia in the City control, then the Zip Code control will only display zips that are in Philadelphia, and so on.
Your new post is loading...