Okay
  Public Ticket #2735695
Hide Row
Closed

Comments

  • DFSKarma started the conversation

    Looking to "Hide entire row" if a certain cell in a certain column is 0.0. How would I set that up?

  • [deleted] replied

    Hi DFSKarma

    Thank you for reaching out to us.

    You can try adding a custom row CSS class if the column meets a certain condition using the conditional formatting tab.

    2223866056.png


    This class should work automatically, but if it doesn't work straight away, you can go to wpDataTables settings/Custom JS and CSS/Custom CSS field, and add this:

    table.wpDataTable .hide { display: none !important; }

    Please note, though, that on pages where you have rows with this value you want to hide they will only be hidden from view, but they will still be present on the page. So, if you have 10 rows on the first page of the table, and there are 9 rows with this value, you will only see 1 row on the first page.

    If you have a lot of these entries, you may want to consider increasing the number of rows that exist on the page. If the table exceeds 2.000 rows, choosing the option "All" is not recommended, because the page loading time will increase, and it can also break due to the amount of data.

    I hope this helps, please don't hesitate to contact us if there is anything else we can assist you with.