Avoid sort on last row in the table DataTable plugin

Viewed 6462
var oTable = $('#table').dataTable({
                "sScrollX": "100%",
                "sScrollXInner": "150%",
                "bScrollCollapse": true,
                "bPaginate": false,
                "bFilter": false,
                "bSortable": true          
            });
            new FixedColumns(oTable, {
                "iLeftColumns": 1,
                "iRightColumns": 1
            });

I am using data table plugin, And my initialize code is as above, i want my last row not column not to be sorted, when i click on any header. I searched every where I couldn't find a way to stop row sorting...Please help me out..............

3 Answers

Add Footer To The Table .... It Wont Sort The Last Column

<tfoot>
   <tr>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td><b>TOTAL</b></td>
      <td id="billedAmount"></td>
      <td id="totalOtherCharges"></td>
      <td id="totalCost"></td>
   </tr>
</tfoot>
Related