SearchPanes - Where are The Filters?

SearchPanes - Where are The Filters?

DalemanDaleman Posts: 17Questions: 5Answers: 0

what happen to the search panes ?
where are they ?

    <script type="text/javascript" charset="utf-8">
        $(document).ready(function () {
            $('#example').DataTable({
                searchPane: true

            });
        });
    </script>

This question has an accepted answers - jump to answer

Answers

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

    Hi @Daleman ,

    It's working fine for me: http://live.datatables.net/qewegata/1/edit.

    Are you include the CSS and JS files?

    Cheers,

    Colin

  • DalemanDaleman Posts: 17Questions: 5Answers: 0

    Hi @Colin,

    actually, it worked well when table was loaded with default table but above screenshot came up when I change loading table.

    any idea what I have missed ?

    Thank in Adv

  • DalemanDaleman Posts: 17Questions: 5Answers: 0
    edited April 2018

    I tried to change table header and body with this

        <thead>
          <tr>
            <th>ID NCS</th>
            <th>Name</th>
            <th>KTP</th>
            <th>NIM</th>
            <th>Univ</th>
            <th>GPA</th>
            <th>Bank Acc</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td>13</td>
            <td>adfad</td>
            <td>123123</td>
            <td>10</td>
            <td>Univ Inxyzzz (UI)</td>
            <td>3.50</td>
            <td>1234asdf)</td>
          </tr>
          <tr>
            <td>15</td>
            <td>asdf</td>
            <td>10</td>
            <td>asdf</td>
            <td>Univ Inxyzzz (UI)</td>
            <td>3.00</td>
            <td>10</td>
          </tr>
          <tr>
            <td>16</td>
            <td>asdf</td>
            <td>11</td>
            <td>a11</td>
            <td>Univ Brxyzzz (UB)</td>
            <td>4.00</td>
            <td>11</td>
          </tr>
          <tr>
            <td>17</td>
            <td>poiuy</td>
            <td>12</td>
            <td>qwer</td>
            <td>Univ Dpxyzzz (UnDip)</td>
            <td>3.50</td>
            <td>12</td>
          </tr>
          <tr>
            <td>18</td>
            <td>ioqwruio</td>
            <td>13</td>
            <td>98987</td>
            <td>Univ Dpxyzzz (UnDip)</td>
            <td>3.70</td>
            <td>13</td>
          </tr>
        </tbody>
    

    and this is what I get

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

    Ah, that's because the values are too unique - see here: http://live.datatables.net/yizupesi/1/edit

    This is your data with more 11s in the Bank Account field.

    To customise the uniqueness level, take a ganders at the threshold option on this page.

    Cheers,

    Colin

  • DalemanDaleman Posts: 17Questions: 5Answers: 0

    @Colin,

    well, I understood your answer. Thank you very much !!!

  • allanallan Posts: 63,455Questions: 1Answers: 10,465 Site admin
    edited April 2018

    edit Sorry. Replied without refreshing to see the latest discussion. Ignore me :)

    Allan

This discussion has been closed.