Trouble using afnFiltering in combination with hidden columns.
Trouble using afnFiltering in combination with hidden columns.
bryceray1121
Posts: 65Questions: 0Answers: 0
[code]
iniFilter = function(selector){
var tables = $jq(selector);
var i;
for ( i=0, iLen=tables.length ; i
iniFilter = function(selector){
var tables = $jq(selector);
var i;
for ( i=0, iLen=tables.length ; i
This discussion has been closed.
Replies
To get an array of all TD elements, including hidden ones you can use this plug-in: http://datatables.net/plug-ins/api#fnGetTds . The only thing I would say about this approach is that it is going to be slow - since you are doing so much DOM and general processing for every row. Is the index the same for all rows? It might be better to calculate it before you call whatever is triggering the filter and then just use that "static" value.
Allan
Allan