Does global search with regex enabled search within all columns?
Does global search with regex enabled search within all columns?
Tsenzuk
Posts: 2Questions: 1Answers: 0
Search is performed only for 1st column if global search with regex option enabled is used.
e.g.
- Global search ^Soft
- Treat as regex true
- Use smart search false
how can it be fixed?
This discussion has been closed.
Answers
I have found the reason of such behaviour:
global filter works not for each of cell, but for full line joined by spaces in this way:
if ( ! rpSearch.test( settings.aoData[ display[i] ]._sFilterRow ) ) {
}
where rpSearch is our regex and settings.aoData[ display[i] ]._sFilterRow is line contains all searchible columns.
thus search with line start ^ and line end $ special characters doesn't work properly