Switch between regex and smart filter
Switch between regex and smart filter
Hello all,
Predominately, i use smart filtering which works very well for my use. However, I have received a request to enable regex filtering as an option. I was hoping to write an extra that would place a checkbox next to the global search box that would enable/disable regex filtering. The issue I have is attempting to change that functionality when checked.
The API example (http://datatables.net/examples/api/regex.html) accomplishes this task by creating a second global search box, that sends the filter command [fnFilter()] each time there is a click or keyup. As stated before, my preference is to change the default behavior. Also, I don't see an identifier on the global search box similar to the API example.
Any suggestions on how to accomplish this?
Predominately, i use smart filtering which works very well for my use. However, I have received a request to enable regex filtering as an option. I was hoping to write an extra that would place a checkbox next to the global search box that would enable/disable regex filtering. The issue I have is attempting to change that functionality when checked.
The API example (http://datatables.net/examples/api/regex.html) accomplishes this task by creating a second global search box, that sends the filter command [fnFilter()] each time there is a click or keyup. As stated before, my preference is to change the default behavior. Also, I don't see an identifier on the global search box similar to the API example.
Any suggestions on how to accomplish this?
This discussion has been closed.
Replies
Allan