DataTables individual column filtering example (using select menus) problem

DataTables individual column filtering example (using select menus) problem

Cpt_FantasticCpt_Fantastic Posts: 1Questions: 0Answers: 0
edited August 2013 in DataTables 1.9
Hi, everybody.
I'm playing a little bit with DataTables (great stuff) with server-side processing.
Basic usage is working fine.
I tried to add column filtering using select menus (https://www.datatables.net/release-datatables/examples/api/multi_filter_select.html)
but still with data coming from a server

this is my code

the data format as returned in getColumnData is as follows : [{"valeur":"10"},{"valeur":"5"},{"valeur":"4"}]

function getColumnData( iColumn) {
var asResultData = new Array();
$.getJSON('scripts/createSelect.php',{ "colNumber": iColumn },function (data,textStatus,jqXHR) {
$(data).each(function(key,value) {
asResultData.push(value.valeur);
});
});
return asResultData;
};

function fnCreateSelect( iColumn ) {
var asResultData = getColumnData(iColumn);
// alert("Test"); // works on if I put this effective. if in comment drop-down are not populated
var r='', i, iLen=asResultData.length;
for ( i=0 ; i
This discussion has been closed.