SearchPane - CascadePane option isnt working

SearchPane - CascadePane option isnt working

DA84DA84 Posts: 3Questions: 1Answers: 0
edited October 2022 in Free community support

Hi All,

For some reason (unknown to me) the cascadePanes option no longer appears to work for me. When set to TRUE all search pane values return a value (the number to the right) of 0 and the cascade function is not active.

Will try to get a pic as soon as possible. Below is a list of the implemented search pane options.

searchPanes: {
  cascadePanes: true,
 columns: [0, 7, 6, 17, 2, 16, 1],
 layout: 'columns-3',
 orderable: false,
 controls: false,
 collapse: false,
      dtOpts: {
                     select: {
                                  tyle: 'multi'
                                  }
                          },
                    }

Script versions in use:

 <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.js"></script>
 <script type="text/javascript" src="https://cdn.datatables.net/1.12.1/js/jquery.dataTables.min.js"></script>
 <script type="text/javascript" src="https://cdn.datatables.net/searchpanes/2.0.2/js/dataTables.searchPanes.min.js"></script>
 <script type="text/javascript" src="https://cdn.datatables.net/select/1.4.0/js/dataTables.select.min.js"></script>
 <script type="text/javascript" src="https://cdn.datatables.net/responsive/2.3.0/js/dataTables.responsive.min.js"></script>

Thanks in advance.

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

Answers

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

    It's working as expected here.

    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

  • DA84DA84 Posts: 3Questions: 1Answers: 0

    Test case can be viewed here - http://live.datatables.net/neqeyezu/1/

    The section causing the issue is this:

    initComplete: function() { this.api().search(getUrlVars()['search']).draw();

    It is used to call an api allowing visitors to filter the results using the URL.... The odd thing is that we I access the page using the API the cascade function correctly.

Sign In or Register to comment.