Does Datatables have "pre" and "post" filtering events

Does Datatables have "pre" and "post" filtering events

neuDev33neuDev33 Posts: 11Questions: 0Answers: 0
edited July 2013 in General
I'm using the following code to filter data in my datatable -

[code]
$.fn.dataTableExt.afnFiltering.push(
function (oSettings, aData, iDataIndex) {

return filterByFullName(aData[(allColumnNames.indexOf("FullName"))].toString());

for (var index in distinctCompanyNames) {
fieldName = distinctCompanyNames[index];
var CompanyNamesToFilter = GetValuesForField(fieldName);
fieldValueForCurrentRow = aData[(allColumnNames.indexOf(fieldName))];
return filterRow(fieldValueForCurrentRow, CompanyNamesToFilter );
}

return true;
});
[/code]

I'd like to pre-populate the array CompanyNamesToFilter before datatables begins filtering so I don't end up populating this array repeatedly for each row, and I'd like to clear this after all the rows have been filtered.

Is there a way to do this?
This discussion has been closed.