How I hide search
How I hide search
$(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();
*/
}
});
//$('.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();
*/
}
});
This discussion has been closed.
Replies
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]
Allan