Custom Row Filtering Not Working
Custom Row Filtering Not Working
Hello,
I am trying to apply my own custom row filtering, but I cannot get the function to work.
I have setup a very basic filter that should filter out everything
[code]
$.fn.dataTableExt.afnFiltering.push(function (oSettings, aData, iDataIndex)
{
alert('debug hit');
return false;
});
[/code]
When I call fnDraw() on my table via a button, I still see all of my rows and the alert box never appears. Where am I supposed to add this piece of code to make the filter work? Before or after table initialization or somewhere else?
I am trying to apply my own custom row filtering, but I cannot get the function to work.
I have setup a very basic filter that should filter out everything
[code]
$.fn.dataTableExt.afnFiltering.push(function (oSettings, aData, iDataIndex)
{
alert('debug hit');
return false;
});
[/code]
When I call fnDraw() on my table via a button, I still see all of my rows and the alert box never appears. Where am I supposed to add this piece of code to make the filter work? Before or after table initialization or somewhere else?
This discussion has been closed.
Replies