Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    The command

    "aoColumnDefs": [ { "bVisible": false, "aTargets": [ 6 ] } ]

    would hide the 7th column of the table (counting in the code starts with 0!), but as your table doesn’t have that many columns, the functions break and don’t show at all.

    So, just try again with the correct column number that you want to hide here, 0 for the first column, 1 for the second column, and so on.

    Regards,
    Tobias

    Thread Starter Squillions

    (@squillions)

    Tobias,

    There are five columns and I entered the number 4. The search and entries disappear. Please click the link and you will see.

    Thanks
    Lee

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi Lee,

    when shown on the frontend, the table only has four columns, from what I can see. Are you maybe also hiding a column on the “Edit” screen (so that it has a red background there now)? If those, please un-hide that column there again, as it won’t be available to the JS otherwise.

    Regards,
    Tobias

    Thread Starter Squillions

    (@squillions)

    No, I did try it both ways and put this in Custom Commands field

    “aoColumnDefs”: [ { “bVisible”: false, “aTargets”: [ 4 ] } ]

    Thread Starter Squillions

    (@squillions)

    Sorry I had a shortcode extension in as well for hide columns and previous to that had it hid, before unhiding it earlier. It works now. Thanks a lot.

    Lee

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi lee,

    ah, yes, the hide_columns parameter in the Shortcode explains this. Good to hear that you found that and that everything is working now! ??

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Search Within Hidden Columns’ is closed to new replies.