2.0 - ColReorder and Column Search Not Working Together

2.0 - ColReorder and Column Search Not Working Together

dkercherdkercher Posts: 6Questions: 2Answers: 0

https://live.datatables.net/wejahibi/1/edit

For the test case above, I combined the basic install of colReorder (https://datatables.net/extensions/colreorder/examples/initialisation/simple.html) with the example for individual column searching (https://datatables.net/examples/api/multi_filter.html)

Reproducable steps:
1. type angelica in the name column search to see that it works
2. reorder the name column to the second column, it still works
3. try to edit the name column search and it no longer works. In fact, a few odd things happen:
* editing the search (for example: a single backspace to turn angelica to angelic) returns 0 results
* clearing the input from the name search will not remove the filter, it will still show the Angelica Ramos row
* searching system architect in the name search will also find the Angelica Ramos row (assuming you just swapped Name and Position for your reorder as I suggested to test)

So in summary, reordering locks in any column searches you had before he reorder and new searches in a reordered column search the original column that was there before the reorder.

Does anyone have a fix for this? It's preventing me from using the column searches which would be a real boon to my app.

Replies

Sign In or Register to comment.