columnFilter() gives error

columnFilter() gives error

rajkrajk Posts: 5Questions: 1Answers: 0
edited March 2014 in General
I am trying to add column filter.

But it gives error on console (of browser):

Uncaught TypeError: Object [object Object] has no method 'columnFilter'

I expect the column filters to be displayed at the bottom

This is my code:

[code]


$JQ_1(function() {
$JQ_1('#TableId').dataTable( {
"bJQueryUI": true,
"bLengthChange": true,
"bFilter": true,
"bInfo": true,
"bPaginate": true,
"bSort":true,
"sPaginationType": "full_numbers",
"aaSorting": [[ 0, "asc" ]],
"aoColumns": [
{"bSortable": true},
{"bSortable": true},
{"bSortable": true},
{"bSortable": true},
{"bSortable": false}
]
} ).columnFilter(
{
aoColumns: [ { type: "select" },
{ type: "text" },
null,
{ type: "text" },
{ type: "select" }
]

});
} );




[/code]

What .js file do I need to include?

I am currently including DataTables_v1.7.6/jquery.dataTables.js , TableTools-2.0.1/media/js/TableTools.js , TableTools-2.0.1/media/js/ZeroClipboard.js

Please help!

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    ColumnFilter is a 3rd party plug-in and not supported as part of the DataTables core project. I'd suggest you ask on that project's issue list.

    You will probably also need to include the columnFilter file I guess.

    Allan
  • rajkrajk Posts: 5Questions: 1Answers: 0
    Thanks Allan.

    Yep got it resolved. Was missing a file.
This discussion has been closed.