// updates the listbox with unique records depending on the selected column.
var updateFilterBox = function (datafield) {
var filterBoxAdapter = new $.jqx.dataAdapter(source);
var uniqueRecords = filterBoxAdapter.records;
filterBoxAdapter.splice(0, 0, ‘(Select All)’);
$(“#filterbox”).jqxListBox({ source: uniqueRecords, displayMember: datafield });
$(“#filterbox”).jqxListBox(‘checkAll’);
}
I have this code that I took from one of your samples and all of my source data comes from a json string originally, but it was already properly converted and displaying in my grid. However, filterBoxAdapter.records does not populate my list and when I call filterBoxAdapter.records.length, it returns 0. meaning there is nothing there. The list gets populated if I use filterBoxAdapter without the records, but then nothing else works and i get errors because it is not an array. Help?