Cannot sort columns even when {bSort : true}

Cannot sort columns even when {bSort : true}

tmarks29tmarks29 Posts: 3Questions: 1Answers: 0
edited June 2014 in Free community support

I am using serverside processing using Ignitedtables as my JSON generator.

My JSON looks like this:
{"sEcho":0,"iTotalRecords":132,"iTotalDisplayRecords":132,"aaData": [["Daniel","Adams","","","5555555555","EQ","1"],["Alexis","Alonso Ortiz","","test28@gmail.com","5555555555","EQ","2"],....

And my JS looks like this:

                    "bProcessing": true,
                    "bServerSide": true,
                    "bSort" : true,
                    "sAjaxSource": '<?php echo base_url("member_controller/get_members");?>',
                    "bJQueryUI": true,
                    "iDisplayStart ": 20,
                    "oLanguage": {
                        "sProcessing": "<i class='fa fa-spinner fa-spin></i>",
                    },
                     "aoColumns": [
                        {"bSortable": true},
                        {"bSortable": true},
                        {"bSortable": true},
                        {"bSortable": true},
                        {"bSortable": true},
                        {"bSortable": true},
                    ],
                    "fnRowCallback": function( nRow, aData, iDisplayIndex ) {

                        return nRow;
                    },
                    "fnInitComplete": function () {
                        //oTable.fnAdjustColumnSizing();
                    },
                    'fnServerData': function (sSource, aoData, fnCallback) {
                        $.ajax
                        ({
                            'dataType': 'json',
                            'type': 'POST',
                            'url': sSource,
                            'data': aoData,
                            'success': fnCallback
                        });
                    }
                });

Am I missing something? None of the columns on my table are sorting

Replies

This discussion has been closed.