No Search box with almost zero configuration, but want it.
No Search box with almost zero configuration, but want it.
He everyone,
I am stuck on a issue for now two days and it is killing me inside. I use datatables to initialize a table and I have almost no configuration, but the default search box is not appearing. I dont know why, I have not changed anything and tried enough things to make it work but it dont.
Here is my javscript:
[code]function initializeDataTable(data){
$('#report_table').append( function(){
var table = '';
for (var i=0; i < data.aoColumns.length; i++ ) {
table += '';
}
table += '';
})
//var columns = initializeTableColumns();
var dataTable = $('#report_table').dataTable( {
"bProcessing": true,
"sPaginationType": "full_numbers",
"aoColumns": data.aoColumns,
"aaData": data.aaData,
"oLanguage": {
"sUrl": "rapportage_tool/remaining_resources/dataTables.dutch.txt"
}
} );
[/code]
Can it be because I use the demo_table.css ? That is the only thing that I can think of after these days, but on the website with the demo.css its working. I hope somebody can help me.
I am stuck on a issue for now two days and it is killing me inside. I use datatables to initialize a table and I have almost no configuration, but the default search box is not appearing. I dont know why, I have not changed anything and tried enough things to make it work but it dont.
Here is my javscript:
[code]function initializeDataTable(data){
$('#report_table').append( function(){
var table = '';
for (var i=0; i < data.aoColumns.length; i++ ) {
table += '';
}
table += '';
})
//var columns = initializeTableColumns();
var dataTable = $('#report_table').dataTable( {
"bProcessing": true,
"sPaginationType": "full_numbers",
"aoColumns": data.aoColumns,
"aaData": data.aaData,
"oLanguage": {
"sUrl": "rapportage_tool/remaining_resources/dataTables.dutch.txt"
}
} );
[/code]
Can it be because I use the demo_table.css ? That is the only thing that I can think of after these days, but on the website with the demo.css its working. I hope somebody can help me.
This discussion has been closed.
Replies
Allan