Columns.render function: filtering by individual column filters.

Columns.render function: filtering by individual column filters.

tangerinetangerine Posts: 3,365Questions: 39Answers: 395

When applying this condition in a columns render function

if (type === 'display' || type === 'filter' ) {

it seems that the filtering only applies when using the global input filter.

Is there any way of filtering the rendered data when using individual column text inputs filtering?
TIA

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 21,343Questions: 26Answers: 4,954
    Answer ✓

    It seems to work here:
    http://live.datatables.net/giharaka/572/edit

    I replaced spaces with - in the Location column. Just type - in the column filter. Please provide a non-working example.

    Kevin

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    Hmmm. Thank you Kevin. I must have a mistake somewhere. Now I know this should work, I should be able to to fix it.
    Thanks again.

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    Go it. Thank you, Kevin, you are a legend.

  • kthorngrenkthorngren Posts: 21,343Questions: 26Answers: 4,954

    Glad to be of help :smile:

    Kevin

This discussion has been closed.