question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

YADCF and column visibility issue "ERROR: Filter container could not be found." / select2 warnings

See original GitHub issue

Hi, I already used yadcf with Buttons-Colvis together without any issue, but after some changes yadcf shows this error message in the console: ERROR: Filter container could not be found, only when some columns are hidden after yadcf init.

See test fiddle

I’m hidding some columns in document ready as a default and it seems to be causing the issue. Checked commenting these lines out:

    // Default hidden columns
    my_table.columns(':gt(8):not(".filtered_col")').visible(false, false);
    my_table.columns.adjust().draw(false); // adjust column sizing and redraw

Any idea? Thank you

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
vedmackcommented, Nov 5, 2016

select2 warnings were fixed in 0.9.2.beta.1

1reaction
vedmackcommented, Oct 26, 2016

You are right, with yadcf 0.8.3 it didn’t throw anything to the console, It doesn’t look harmful (google is full of this select2 error) I’ll try to see if its possible to fix it, I had to change the way I use select2 because otherwise it does not work as expected in other scenarios. ( I’ll keep this issue open for now - no need for new one)

Read more comments on GitHub >

github_iconTop Results From Across the Web

datatables yadcf custom function not triggered - Stack Overflow
I'm managed to work out the problem. During development I modified the data property of yadcf for the column to that above.
Read more >
YADCF — DataTables forums
Error messages shown: Description of problem: Hi,. I want to use YADCF's cumulative_filtering Tags filter on an externally_triggered table ...
Read more >
yadcf.exFilterColumn - Plunker
bVisible === false) { //console.log('Yadcf warning: Can\'t show filter inside a column N#' + column_number + ' for a hidden one (place it...
Read more >
Recent Discussions — DataTables forums - RSSing.com
Datatables explains "Note that if the table does not have a tfoot element, this callback ... Next Trying to create a yadcf filter...
Read more >
DOM source with select2 example - yadcf
Yet Another DataTables Column Filter (yadcf) 0.9.3.beta. DOM source with select2 example. This jQuery plug-in allows the user to easily add filter components...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found