issue with searchPanes not showing any columns

issue with searchPanes not showing any columns

cj1005cj1005 Posts: 134Questions: 41Answers: 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: 14,368Questions: 1Answers: 2,445
    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: 134Questions: 41Answers: 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: 16,438Questions: 25Answers: 3,898

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

    Kevin

Sign In or Register to comment.