Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

Column filter (multi filter) #92

Closed
giolvani opened this issue Oct 8, 2014 · 5 comments
Closed

Column filter (multi filter) #92

giolvani opened this issue Oct 8, 2014 · 5 comments
Labels

Comments

@giolvani
Copy link

giolvani commented Oct 8, 2014

There is some config to use multi column filter (http://www.datatables.net/examples/api/multi_filter.html)?

@l-lin
Copy link
Owner

l-lin commented Oct 8, 2014

Using the example, you can do it like this.

@l-lin l-lin added the question label Oct 8, 2014
@giolvani
Copy link
Author

The event:dataTableLoaded when is fired the thead structure is not ready yet.

I wrapped the code in $timeout, and it worked fine!

$timeout(function () {
    console.log($(id).find('thead').find('th'));
}, 200);

Is this way the better way?

@l-lin
Copy link
Owner

l-lin commented Oct 13, 2014

How about using DataTable initComplete? I think it might work.

@giolvani
Copy link
Author

Nice, I didn't know/ hadn't understood the possibility to use the original events from datatables.
The initComplete, works for me, thank you!

There some prevision to include the columnFilter plugin (http://jquery-datatables-column-filter.googlecode.com/svn/trunk/index.html) as colVis, colReorder and others?

@l-lin
Copy link
Owner

l-lin commented Oct 13, 2014

I opened an new issue #94 concerning the integration of the columnFilter plugin.

@l-lin l-lin closed this as completed Oct 13, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants