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?
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.
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.
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.
Replies
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