cyberhobo / ColumnFilterWidgets

This is an add-on for the DataTables plugin for jQuery that creates filtering widgets based on the data in table columns.
69 stars 34 forks source link

It doesn't work when you specify aaData as an array of objects #20

Closed iabdulin closed 11 years ago

iabdulin commented 11 years ago

It tries to find column by index, but can't so throws error. This change (line 161): widget.iColumn = widget.oColumn['mData'];

fixes the error.

To make aiExclude work with mData instead of column indexes, we need to change line 116 to: if ( oColumn.bVisible && sExcludeList.indexOf( '|' + oColumn.mData + '|' ) < 0 ) {

cyberhobo commented 11 years ago

Does the solution to issue #24 fix this also?