How I hide search

How I hide search

rlondonorlondono Posts: 1Questions: 0Answers: 0
edited November 2013 in General
$(document).ready(function () {
//$('.dataTable').dataTable();
InitializeDataTable();

function InitializeDataTable() {
/* Initialise the DataTable */
var oTable = $('#tbljobrequests').dataTable({
"aaSorting": [[5, "asc"]],
"bPageinate": false,
"binfo": false,
"bFilter": true,

"aLengthMenu": [[-1, 10, 50, 100], ["All", 10, 50, 100]],
"iDisplayLength": 10
});
//$('#jobrequest').append(fnCreateSelect(oTable.fnGetColumnData(7)));
$('#jobrequeststatus select').change(function () {
oTable.fnFilter($(this).val(), 5, false);

});

/*
$("#jobaction").html('');
$("#jobaction input").on("keyup", function () {
oTable.fnFilter($(this).val(), 6);
});
$('#jobpickupdate').html(fnCreateSelect(oTable.fnGetColumnData(5), 5));
$('#jobpickupdate select').change(function () {
oTable.fnFilter($(this).val(), 5);
});

$('#tbljobrequests_length').hide();
$('#tbljobrequests_processing').hide();
$('#tbljobrequests_filter').hide();
*/
}

});

Replies

  • bacalovbacalov Posts: 22Questions: 3Answers: 0
    edited November 2013
    Hi,
    I guess passing the right options to sDom should do the trick. Something like:
    [code]
    "sDom": "<'row-fluid'<'span6'T><'span6'>r>t<'row-fluid'<'span6'i><'span6'p>>",
    [/code]
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Agreed - sDom is how to control what controls DataTables adds to the document.

    Allan
This discussion has been closed.