$('#example').dataTable( { "bPaginate":false, "bLengthChange":false, "bFilter":false, "bSort":false, "bInfo":false, "bAutoWidth":false, "asStripClasses":null, //To remove "odd"/"event" zebra classes "sPaginationType":"full_numbers", "bJQueryUI":true, "sScrollX":"100%", "sScrollY":"500", "iDisplayLength":20, } ); oTable.fnSetColumnVis(2, false); // ColumnsVis Setting 1. bSortable - defines whether sorting will be enabled on the column 2. asSorting - defines what sorting orders will be applied when user clicks on the heading - see live example on the DataTables site 3. sSortingDataType - defines the type of column that will be used for sorting (e.g., "dom-text", "dom-select", or "dom-checkbox") 4. sType - type of the column, e.g., 'string', 'numeric', 'date', or 'html' (by default) 5. iDataSort - defines what column will be actually used for sorting instead of the one that is selected; useful if you want to sort by a hidden column An example is shown in the following listing: $('#example').dataTable( { "bSort": true, "aaSorting": [[2,'asc'], [3,'desc']], //[] will not perform initial sorting "aaSortingFixed": [[1,'asc']], "aoColumns": [ { "bSortable": false },//Disable sorting on this column null, { "asSorting": [ "asc" ] },//Allow only "asc" sorting in the column 2 null, { "sSortDataType": "dom-text", "sType": "numeric" }, { "iDataSort": 6 }//Use column 6 to perform sorting null ] } ); // var oTable; // var oTable = $('#example').dataTable(); // oTable.fnFilter('UP-197'); // oTable.$('tr', { "filter": "applied" }).css('backgroundColor', 'blue'); // oTable.fnFilter(''); //----------------- Per Page record setings ---------------------------- set property of datatable "aLengthMenu":[[10,20,50,100,250,-1],[10,20,50,100,250,"All"]], //------------------------------------------------------------------------ //----------------- Call After Init ---------------------------- "fnInitComplete": function () { var oFH = new FixedHeader(oTable); oFH.fnUpdate(); alert("sdf"); }, //------------------------------------------------------------------------ //----------------- Set Targets Column Width ---------------------------- "aoColumnDefs": [ { "sWidth": "10%", "aTargets": [ -1 ] } ] //------------------------------------------------------------------------ //----------------- Set Empty Grid Msg ---------------------------- "oLanguage": { "sZeroRecords": "There are no records that match your search criterion" }, //------------------------------------------------------------------------