issue with searchPanes not showing any columns
issue with searchPanes not showing any columns
![cj1005](https://secure.gravatar.com/avatar/def81682ad86234aafe637aa8c640933/?default=https%3A%2F%2Fvanillicon.com%2Fdef81682ad86234aafe637aa8c640933_200.png&rating=g&size=120)
Link to test case: https://www.wd4g.com/WCGateway/DTTest.wc
When initializing my data table I set my targets for searchPanes (see the code below), when I click the searchPanes button, the searchPane modal appears, but just says "No searchpanes". Where it should be showing 4 columns that are set in the targets. I use the same code on other screens and it works correctly?
This has happened on other screens, but I cannot see any difference in the code and I have no errors in the console.
{ extend: 'searchPanes', titleAttr: 'Filter key data with SearchPanes', config: { cascadePanes: true, columns: [ 9,10,11,13 ], orthogonal: { search: 'filter', display: 'display' }, } }
Any help on this would be very appriciated?
Thanks, Chris
This question has an accepted answers - jump to answer
Answers
It's probably because the uniqueness threshold is too low - try setting
searchPanes.threshold
to '1' as in this example here,Colin
Thank you Colin, I did not realise there was a threshold setting! And yes, you are correct, I added some more rows and the searchPanes now work![:smile: :smile:](https://datatables.net/forums/resources/emoji/smile.png)
Another option is to use
columns.searchPanes.show
like this example.Kevin