Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82031

aoColumnDefs bSortable by class name not work

$
0
0

Hi all!
I've a problem with aoColumnDefs bSortable,
i have a table with the class "nosort" in the <TH>,

<table id="table" class="table>
  <thead>
  <tr>
    <th class="nosort"></th>
    <th class="nosort></th>
    <th class="nosort></th>
    <th></th>
  </tr>
</thead>
  <tbody>
    <tr>
    ....
    </tr>
  </tbody>
</table>

with

        table = $('.lte-table').DataTable({
               aoColumnDefs: [{
                 bSortable: false,
                 aTargets: 'nosort'
             }]
        });

The sort function in all the column that have "nosort" class in the <TH> are disable, and works perfectly,
except the first column...

How ca i fix it?

Please help me

Best regards


Viewing all articles
Browse latest Browse all 82031

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>