How do I pass parameters to filter SearchPanes?

How do I pass parameters to filter SearchPanes?

AlessandroBRAlessandroBR Posts: 4Questions: 2Answers: 1

Link to test case: http://live.datatables.net/komoqana/1/edit

Description of problem: I need to customize the panels at each access. How to pass a variable that defines the searchpanes filters?

This question has an accepted answers - jump to answer

Answers

  • AlessandroBRAlessandroBR Posts: 4Questions: 2Answers: 1
    edited July 19 Answer ✓

    I managed to create an array of numbers.

    var iMostra = JSON.parse("[" + mostra + "]");
    
    columnDefs: [{
                    searchPanes: {
                        show: true,
                        initCollapsed: true
                    },
                    targets: iMostra
                },
                {
                    searchPanes: {
                        show: false
                    },
                    targets: iNaoMostra
                }
            ],
    

    Please close this post.
    Thanks!

    Edited by Colin - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.

  • colincolin Posts: 14,442Questions: 1Answers: 2,460

    Thanks for posting back!

    Colin

This discussion has been closed.