No Search box with almost zero configuration, but want it.

No Search box with almost zero configuration, but want it.

UrlUrl Posts: 5Questions: 0Answers: 0
edited December 2013 in General
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.

Replies

  • jsmith88jsmith88 Posts: 10Questions: 0Answers: 0
    I don't know a whole lot about the stylesheets that come with datatables.net, but did you try downloading demo.css and plugging that into your project to see if it fixes the issues? If it does, then you can compare the two stylesheets (hint: use a tool like http://www.diffchecker.com/), and figure out what styles you're missing.
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Sounds to me like there might be a script error. Does the console in your browser say anything? Can you link us to the page please?

    Allan
This discussion has been closed.