changing the fnDraw function with custom filtering

changing the fnDraw function with custom filtering

benDevbenDev Posts: 6Questions: 0Answers: 0
edited February 2012 in General
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

Replies

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    > this function will happen everytime i am using fnDraw ?

    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
This discussion has been closed.