dataTables bSearchable not working

dataTables bSearchable not working

marceloleandromlmarceloleandroml Posts: 4Questions: 0Answers: 0
edited September 2012 in General
Hi. I have this code to implementing and searchable not working.
$('#listadocumentos').dataTable({
"oLanguage": { "sUrl" : "/themes/media/datatables.Portuguese.txt" },
"bJQueryUI": false,
"bFilter": true,
"sPaginationType": "full_numbers",
"aoColumnDefs": [{ "aTargets": [ 0, 1, 2, 3, 4 ], "bSearchable": false }]
}).columnFilter()

My table doesn´t have a explicity ID ou Name to each Th.
I have 25 columns in table and I need to disable the search only in the first 5 columns.

What´s wrong?
Tks!

Replies

  • allanallan Posts: 63,534Questions: 1Answers: 10,475 Site admin
    When you say its not working, do you mean that the column filtering plug-in is still adding filtering inputs for those columns? If so, that's not an issue with DataTables, but with the columnFilter plug-in. I'd suggest you file a bug against that project, as it is a third party project and not maintained by myself ( http://code.google.com/p/jquery-datatables-column-filter/ ).

    If that's not the problem you are having, please link me to a demo showing the issue so I can understand the problem.

    Allan
  • marceloleandromlmarceloleandroml Posts: 4Questions: 0Answers: 0
    Hi Allan.
    I allready implement this parte with succefully. $("#dataTableId").dataTable().columnFilter();
    My problem is that all columns have the sort and filter, but I need to exclude some columns from filter.
    Below each column displays a field to enter the value and need some columns do not have to enter this field.
    like this. http://datatables.net/release-datatables/examples/api/multi_filter.html
    Tks!
  • allanallan Posts: 63,534Questions: 1Answers: 10,475 Site admin
    I still don't understand. Is the column filter add on adding filtering inputs to the columns that you don't want filtering on? That's nothing to do with DataTables - that's the column filter plug-in.

    Allan
  • marceloleandromlmarceloleandroml Posts: 4Questions: 0Answers: 0
    Hi Allan, forget it! We already solved with another solution! Tks!
This discussion has been closed.