search in header with rowGroup

search in header with rowGroup

viraln25viraln25 Posts: 3Questions: 1Answers: 0

With rowGroup in DataTable - for some reason search is not working. i.e. It is not searching in Group header. Any idea on this?

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,143Questions: 1Answers: 2,586
    Answer ✓

    hi @viraln25 ,

    Yep, the DataTables search box only searches for row data - so in the example here, searching for "Averages" which is only in the group headings won't match. If you want it to match, you have to either add that text into a hidden column in the rows, or create a custom search plugin.

    Cheers,

    Colin

  • viraln25viraln25 Posts: 3Questions: 1Answers: 0

    Thanks Colin very much. It helped. Have added them into hidden columns and it is working fine.

This discussion has been closed.