Filtering the table based on external controls
Filtering the table based on external controls
I have a table of businesses (with row grouping, expandable details, etc) and each business can have up to 5 business types. I want to create a group of five select boxes with business types and I want to be able to filter a column in the table based on those types. So if someone selects Travel from one box and Tourism from another, it'll show only businesses that have both the Travel and Tourism business type. All of a business' 5 types are listed in one column.
Is this possible?
Is this possible?
This discussion has been closed.
Replies
Instead of having them in the table, have a couple select boxes above the table that would filter certain columns like City, State, and County. Would anyone know how I might go about filtering a column with the onChange event of a select box?
Yes - use fnFilter . Then you can use any control you want to activate any filter in any way you want.
Allan
Allan
Do you think there's a way to tie that into my original predicament of having 5 type select boxes filtering on one column? I've managed to get it so it'll filter that column when you select one, and then when you select another type from a different box it'll filter the currently shown rows by the additional type. The only problem is if I try to set the second box back to normal it'll show all of the rows and won't keep the original type filter.