Filter by column?

Filter by column?

jamescjamesc Posts: 4Questions: 1Answers: 0
edited December 2011 in General
Might a useful feature request for the future (since I don't think datatables does this out of the box at the moment?) be to allow multiple filtering by individual columns.

i.e. I could have a filter box at the top of each column and could type things in as many of them as I wanted to filter on that string inside that column only.

Replies

  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin
    The fnFilter API method allows this: http://datatables.net/ref#fnFilter. There is also a demo of how this can be done quite easily: http://datatables.net/release-datatables/examples/api/multi_filter.html . There are also two extras which allow some degree of easy customisation:
    https://github.com/cyberhobo/ColumnFilterWidgets
    http://jquery-datatables-column-filter.googlecode.com/svn/trunk/index.html

    Allan
  • jamescjamesc Posts: 4Questions: 1Answers: 0
    Allan:
    Thanks! Don't know how I missed that!
This discussion has been closed.