Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82269

How to force SearchPanes columns to be displayed (and also after making them visible)

$
0
0

Link to test case: https://live.datatables.net/xicirote/1/edit
Debugger code (debug.datatables.net): NA
Error messages shown: NA
Description of problem: Hello,

I would like to know if it is possible to force the display of all columns of the "searchPanes" component without having to set the "threshold" option: 1

Especially since it is mentioned in the documentation that it is not recommended.

If you want to force specific panes to always be present, or to always be hidden, use the columns.searchPanes.show option. This is a much cleaner way of forcing panes to show/hide.

I have seen this example https://datatables.net/reference/option/columns.searchPanes.show and try to make it works but with targets: [-1] but without success.

My test case is almost functional, I'm sure there's not much missing for it to work.


Also, when a column is invisible when generating the Datatable and then makes the column visible, this "new" column does not appear in the "searchBuilder" and "searchPanes" components.
Is this normal?


I know this post is a bit of a follow-up to the one below, but the question is slightly different, so I decided to open a new question.
https://datatables.net/forums/discussion/80822/how-to-exclude-columns-for-searchbuilder

Thanks in advance for your help and have a nice day.


Viewing all articles
Browse latest Browse all 82269

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>