Searchpane working even when not defined.

Searchpane working even when not defined.

PareshKumarPareshKumar Posts: 31Questions: 14Answers: 1
edited June 2020 in Free community support

Hi, I'm trying to use 3 datatables in a single page with one datatable having searchpane. The default value of searchpane is false, but searchpane shows up for all the datatables. Any help will be appreciated. Thanks.

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 21,182Questions: 26Answers: 4,925

    I can image a few different ways to do what you are stating. At minimum please post the code you are using. Better would be a link to your page or a test case showing the issue.
    https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case

    Kevin

  • PareshKumarPareshKumar Posts: 31Questions: 14Answers: 1
    edited June 2020

    Hi kevin,

    I added the following code

    columnDefs: [
    {
    targets: '_all', searchPanes: {
    show: false,
    },
    }
    ]

    But it still says loading searchpanes..

  • sandysandy Posts: 913Questions: 0Answers: 236
    Answer ✓

    Hi @PareshKumar ,

    I'm afraid we will need to see a test case to debug this. I've mocked up a quick example which shows SearchPanes on only one table, so I'm guessing your initialisation is going wrong somewhere.

    Feel free to modify my example to show your problem.

    Thanks,
    Sandy

  • PareshKumarPareshKumar Posts: 31Questions: 14Answers: 1

    Hi @sandy ,
    By removing the dom it works.
    Thanks

Sign In or Register to comment.