searchPanes ViewTotal Bug

searchPanes ViewTotal Bug

ntzz123ntzz123 Posts: 2Questions: 2Answers: 0
edited February 2021 in Free community support

I have this code and the viewTotal is bugged , even clicking the clear button still showing the subtotal , on the league tab it should be showing like "60 found" instead of 13/60 , because nothing is selected.

     .....foreach ($value as $stats) {


                    $lane = $stats['lane'];

                    $league = $stats['league'];
                }

                echo '<td>' . $lane . '</td>';
                echo '<td>' . $league . '</td>';


       <script>
          $(document).ready(function() {

          $('#table').DataTable({

           searchPanes: {
            columns: [1, 2, 3],
            viewTotal: true,
            },
              dom: 'Plfrtip',

              language: {
            searchPanes: {
                count: '{total} found',
                countFiltered: '{shown} / {total}'
            }
           },


           });


           });
          </script>

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599
    Answer ✓

    It appears to be 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

This discussion has been closed.