Alywindows / jquery-datatables-column-filter

Automatically exported from code.google.com/p/jquery-datatables-column-filter
1 stars 0 forks source link

columnfilter gets overwritten when using it multiple times #92

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. using the columnfilter function on multiple datatables

What is the expected output? What do you see instead?
Every table that columnfilter is applied to should be filterable, but only the 
last one you apply it to is.

What version of the product are you using? On what operating system?
columnFilter.js 1.4.8
datatables 1.9.2
SuSe linux 11.4

Please provide any additional information below.

initialsation code:

[code]
$(document).ready(function() {

    $('#table1').dataTable();
    $("#table1").dataTable().columnFilter();
    $('#table2').dataTable();
    $("#table2").dataTable().columnFilter();

} );
[/code]

Original issue reported on code.google.com by alledel...@googlemail.com on 11 Sep 2012 at 8:58

GoogleCodeExporter commented 9 years ago
I have the same issue. 
first dataTable doesn't use ColumnFilter
second dataTable, defines a column with a date-filter.
Everytime I search in the first table, I get an error pointing that the cell 
doesn't contain a Date value. 
Which means, columnFilter is validating the first table, with the settings for 
the second table.

Provided Code:

$("#filtersTable").dataTable();

$.datepicker.regional[""].dateFormat = "yy/mm/dd";
$.datepicker.setDefaults($.datepicker.regional['']);
$('#campaignHistoryTable').dataTable().columnFilter(
  {
    sPlaceHolder: "head:after",
    aoColumns: [
      { type: "date-range", sRangeFormat: "Fechas {from} - {to}" },
      null,
      null
    ]
  }
);

Original comment by Eclectic...@gmail.com on 23 May 2014 at 7:19