If a text field in an Excel spreadsheet (e.g. "Grade") has a leading space (e.g. " K, 1, 2,"), then filtering on " K" (space K) will NOT match this cell, but filtering on " 1" (space 1) will.
I should be able to uniformly search for leading spaces if they are there. This would allow users to reliably filter on " 1," and match " 1, 2, 3," but would NOT match "10, 11, 12," for example.
I'm working around this issue by recoding our grades with single quotes around them (e.g. "'1', '2', '3'"). So then users can search for '1' and match '1' but not '11'. Not ideal, but it gets us rolling again.
I'm glad to hear you found the way around the issue.
Unfortunately, filters applied to string columns are working in alphabetical order, and it has its shortcomings, like the one you described, or number range (if you have numbers in a string column, 11 will come before 2 since in alphabetical order there's no numerical logic).
I'm using wpDataTables Version 2.8.1. (This issue is somewhat related to https://tmsplugins.ticksy.com/ticket/2398509.)
If a text field in an Excel spreadsheet (e.g. "Grade") has a leading space (e.g. " K, 1, 2,"), then filtering on " K" (space K) will NOT match this cell, but filtering on " 1" (space 1) will.
I should be able to uniformly search for leading spaces if they are there. This would allow users to reliably filter on " 1," and match " 1, 2, 3," but would NOT match "10, 11, 12," for example.
I'm working around this issue by recoding our grades with single quotes around them (e.g. "'1', '2', '3'"). So then users can search for '1' and match '1' but not '11'. Not ideal, but it gets us rolling again.
Hello Larry
I'm glad to hear you found the way around the issue.
Unfortunately, filters applied to string columns are working in alphabetical order, and it has its shortcomings, like the one you described, or number range (if you have numbers in a string column, 11 will come before 2 since in alphabetical order there's no numerical logic).
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables