Wednesday, March 23, 2016

Remove jquery datatable sorting on particular column



<script>
    $j = jQuery.noConflict();
    $j(document).ready(function () {
        //For data table

        $j('#example').DataTable({
            "iDisplayLength": 100,
            // "bProcessing": true,
            // "bSort": false
            "aoColumnDefs": [
         { 'bSortable': false, 'aTargets': [2,6,7] }
            ]
       
       

        });

    
    });

No comments:

Post a Comment