Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82123

columnFilter on multiple tables

$
0
0
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 :

<script type="text/javascript">
				$(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();
					} 
				); 
			</script>

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

Viewing all articles
Browse latest Browse all 82123

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>