Multiple global filters

Multiple global filters

nehravnehrav Posts: 2Questions: 0Answers: 0
edited May 2012 in General
Hi,

Is this possible to have multiple global filters??

http://datatables.net/examples/api/regex.html

Above link is almost same except that I don't want second search field to be column based.

Replies

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    Sort of. There are two ways of doing it:

    1. Have two input fields which are concatenated into a single input and that is used for the single global filter.

    2. Use a row based filter plug-in: http://datatables.net/development/filtering#row_filters

    Allan
  • nehravnehrav Posts: 2Questions: 0Answers: 0
    Allan,

    Thanks for quick reply. I'm looking into your second option but for first.

    Concatenation of two inputs in single input will return a single string and hence look for that single string.

    see as per given link

    value of input 1 = gecko and value of input 2 = KHTML
    after concatenation, final string will be 'gecko, KHTML' and hence search for 'gecko, KHTML' which will result into 0 records.
This discussion has been closed.