case sensitive searching

case sensitive searching

alforddmalforddm Posts: 5Questions: 1Answers: 0
edited August 2011 in General
I have table application where I need the search to be case sensitive. Is this something that can be easily done or would I be better off disabling the search feature?

Thank you

Replies

  • alforddmalforddm Posts: 5Questions: 1Answers: 0
    I did remove the search box but is there no easy way that this can be done? To make the sorting case sensitive I just had to remove a few .toLowerCase.
  • allanallan Posts: 63,530Questions: 1Answers: 10,473 Site admin
    Hi alforddm,

    As you point out, in DataTables the filtering is done in a case insensitive manny. There isn't a public method to override this, but you could modify the function _fnFilterCreateSearch to disable this. Just remove the 'i' in the regex creation optional parameters.

    Allan
  • DriverDriver Posts: 23Questions: 0Answers: 0
    Is it also possible to treat national signs (e.g. polish) individually? In my table I have a value with polish sign "ę" and when I search for "e" the word with "ę" is also returned.
This discussion has been closed.