Add Select Element Outside of Table for a Hidden Column?

Add Select Element Outside of Table for a Hidden Column?

n00b0101n00b0101 Posts: 2Questions: 0Answers: 0
edited January 2012 in DataTables 1.8
Wondering if it's possible to add a Select element that will filter based on a hidden column to the prefix of the table (i.e., where the default Show x Entries / Search all columns are found)?

Been going through the documentation and forums, but haven't been able to find this one feature. Does it exist? Is it possible?

Replies

  • allanallan Posts: 63,368Questions: 1Answers: 10,449 Site admin
    Sure - use the fnFilter API method. Built your select menu as required and add an event handler for the 'change' event on it - then call fnFilter to apply the required filter to the table.

    Allan
This discussion has been closed.