SearchPanes 2.0.0 cannot set select to 'multi' inside pane.

SearchPanes 2.0.0 cannot set select to 'multi' inside pane.

wjfwjf Posts: 2Questions: 1Answers: 0

the js and css version I use:

  <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.11.5/css/jquery.dataTables.min.css"/>
    <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/searchpanes/2.0.0/css/searchPanes.dataTables.min.css"/>
    <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/select/1.3.4/css/select.dataTables.min.css"/>
    <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/buttons/2.2.2/css/buttons.dataTables.min.css"/>
    <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script>
    <script type="text/javascript" src="https://cdn.datatables.net/1.11.5/js/jquery.dataTables.min.js"></script>
    <script type="text/javascript" src="https://cdn.datatables.net/searchpanes/2.0.0/js/dataTables.searchPanes.min.js"> </script>
    <script type="text/javascript" src="https://cdn.datatables.net/select/1.3.4/js/dataTables.select.js"></script>
    <script type="text/javascript" src="https://cdn.datatables.net/buttons/2.2.2/js/dataTables.buttons.min.js"></script>

The table settings I use:

var table = $('#example').DataTable({
    searchPanes: {
            layout: 'columns-3',
            cascadePanes: true,
            columns: [2],
            viewTotal: false,
            initCollapsed: true,
            clear: false,
            emptyMessage: "</i></b>EMPTY</b></i>",
            preSelect: [{
                column: 2,
                rows: ['Edinburgh','London']
            }],
            dtOpts:{
                searching: false,
                select:{
                    style: 'multi'
                }
            }
        },
    dom: 'Plfrtip',
});

Finally the select inside SearchPanes is still single not multi.

This question has accepted answers - jump to:

Answers

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

    Hi @wjf,

    I've managed to replicate this in a test case. Thanks for pointing this out - something isn't right there. I've raised an issue internally (DD-2533 for my reference) and will report back here when there is an update.

    Thanks,
    Sandy

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

    Hi @wjf ,

    That should be the issue fixed now as you can see at this example. This will be available in the next SearchPanes release which we hope will be in the next few weeks. Until then you can access the fix from the nightly builds.

    Thanks,
    Sandy

  • wjfwjf Posts: 2Questions: 1Answers: 0

    @sandy Thanks! I was stragling a lot on this problem and finally switched to SearchBuilder.
    Now I can switch back to SearchPane!
    you can see my tiny tool using datatables https://wjfjfm.github.io/time-use/

Sign In or Register to comment.