SearchPanes on button part of config not work

SearchPanes on button part of config not work

lubupanglubupang Posts: 2Questions: 1Answers: 0

$(document).ready(function() {
$('#example').DataTable( {
buttons:[
{extend:'searchPanes',config:{columns:[0]}}
],
dom: 'Bfrtip',
});
});

code like above the columns will not work normal

how to set the config

Answers

  • lubupanglubupang Posts: 2Questions: 1Answers: 0

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    It might be because of the uniqueness in those other columns. If so, you can use columns.searchPanes.show to force them.

    If that doesn't help, we're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

This discussion has been closed.