issue with searchPanes not showing any columns

issue with searchPanes not showing any columns

cj1005cj1005 Posts: 143Questions: 46Answers: 1

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

  • colincolin Posts: 15,240Questions: 1Answers: 2,599
    Answer ✓

    It's probably because the uniqueness threshold is too low - try setting searchPanes.threshold to '1' as in this example here,

    Colin

  • cj1005cj1005 Posts: 143Questions: 46Answers: 1

    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:

  • kthorngrenkthorngren Posts: 21,322Questions: 26Answers: 4,948

    Another option is to use columns.searchPanes.show like this example.

    Kevin

Sign In or Register to comment.