Quantcast
Channel: DataTables 1.9 — DataTables forums
Viewing all articles
Browse latest Browse all 1816

Adding custom config variables to a server side response...

$
0
0
I'm trying to make ColumnFilter pull a list of distinct database values to fill select boxes. Working backwards and search the forums I believe I know what I have to do. (see Allan's 2nd comment here: http://www.datatables.net/forums/discussion/3931/server-side-filtering-on-specific-columns-with-input-and-select/p1)

I'm getting held up on accessing the data I've added. I created an array called 'filterLists' and want to override the data being sent to the select box drawing function if mData is a member of filterLists.

The only part I can't figure out is how to access filterLists once the ajax feed is digested by dataTables. Do I need to declare it somewhere (I've tried but can't access it or find it with a console.log)? What would the syntax be to reference it?

Viewing all articles
Browse latest Browse all 1816

Trending Articles