changing the fnDraw function with custom filtering
changing the fnDraw function with custom filtering
Hi Allan,
a little question to see if i got it right.
i saw the example of the date range filtering is using : $.fn.dataTableExt.afnFiltering.push
my question is : this function will happen everytime i am using fnDraw ? even if its not for filtering ?
the same thing happens with fnFilter ?
isnt there a way to call the filter function on the draw using a flag or anything of that sort ? so that the other fndraw im using will keep on working as expected ?
Thanks,
B
a little question to see if i got it right.
i saw the example of the date range filtering is using : $.fn.dataTableExt.afnFiltering.push
my question is : this function will happen everytime i am using fnDraw ? even if its not for filtering ?
the same thing happens with fnFilter ?
isnt there a way to call the filter function on the draw using a flag or anything of that sort ? so that the other fndraw im using will keep on working as expected ?
Thanks,
B
This discussion has been closed.
Replies
Yes - fnDraw causes a "full redraw" - i.e. it reapplies the current sorting and filtering to the table. YOu can call fnDraw(false) to do a "shallow" draw, which will not call the filtering and sorting methods, but just repaint the screen.
Allan