columnFilter on multiple tables

columnFilter on multiple tables

abaddonabaddon Posts: 6Questions: 0Answers: 0
edited January 2013 in General
Hey,

So my problem is that i have 2 arrays and I want to use columnFilter on each one but it seems that th filtering happen only on 1 of them.

This is the code I use for initialization :

[code]

$(document).ready(function()
{
$("#tabletest").tablesorter();
$("#treeTable").treeTable();
$('#treeTable').dataTable({
"bSort":false,
"bJQueryUI": true,
"sPaginationType": "full_numbers"
}).columnFilter();

$('#tabletest1').dataTable({
"bJQueryUI": true,
"sPaginationType": "full_numbers"
}).columnFilter();
}
);

[/code]

I took an eye into the code of columnFilter and I found that oTable variable is always the last table i've initialized so the filter apply on it whenever I wanted to filter on the first table.

Any of you could help me to find what I did wrong.

Thanks

Replies

  • abaddonabaddon Posts: 6Questions: 0Answers: 0
    I found what was the problem.

    I think I had an old version of the plugin and in this version, there was a problem with variable visibility.

    That work well with the up-to-date version.

    For information, the link on the left side of https://code.google.com/p/jquery-datatables-column-filter/ is not the last version of the plugin.
This discussion has been closed.