How to exclude row from filtering?
How to exclude row from filtering?
Thomson Varkey
Posts: 1Questions: 0Answers: 0
I have a datatable with last row Total how can i exclude that particular row from filtering
This discussion has been closed.
Replies
Set
columns.searchable
to false.//Edit
Nvm, I read it as last col. My suggestion won't work.
Probably the easiest option is to move the total to the footer like this example:
https://datatables.net/examples/advanced_init/footer_callback.html
Otherwise you will probably need to create a search plugin to not include that row.
https://datatables.net/manual/plug-ins/search
Kevin