fnFilter

fnFilter

markb56710markb56710 Posts: 2Questions: 1Answers: 0

This is probably really straight forward, but I think I must be missing something ... I have learnt how to apply an fnFilter, but I cannot figure out what I should use to remove / reset the filter so it shows all results again.

Can someone point me in the right direction?

Answers

  • markb56710markb56710 Posts: 2Questions: 1Answers: 0

    Right ... I have got it working but the way I am doing it feels very clunky... is there a better way?

    function clearfilter() {
    var maxcolumns = 24;
    while (maxcolumns > 0) {
    dataTable1.fnFilter("", maxcolumns);
    maxcolumns--;
    }
    dataTable1.fnFilter("");

    }

This discussion has been closed.