As previously announced via banners and our newsletters, support is no longer available through this platform.

For easier navigation, you can still click on "Submit a Ticket" here, choose the appropriate category, and you'll be redirected to the correct support channel for your plugin.

You can still access your previous tickets and browse public tickets, but please note that responding to tickets is no longer possible.

Paid customers: Please log in to your store account for support.

Pre-purchase questions: Use the support widget in the bottom-right corner of our websites:
https://wpamelia.com
https://wpdatatables.com
https://wpreportbuilder.com

Okay
  Public Ticket #1040290
Adding row numbers to tables
Closed

Comments

  •  2
    Barrie McAuliffe started the conversation

    Love the plugin, thanks. I'm just wondering if there's a way I can include row numbers in the table for easier front end reference. 

    Using the attached image as a reference, a front end column would be ideal, running in this case from 01 to the final record number.

    If not, is there a way to prefix the first column string with code that updates when sorting various columns?

    All appreciated. Thanks

  • [deleted] replied

    Hi Barrie,

    Unfortunately, I didn't understood what are you trying to achieve. Do you want to have ranking column which will remain 1,2,3 despite search or sorting rest of the table or you just want column with numbers 1,2,3 which will follow sorting, search...

    if you want first option it could be done but it requires code customization.

    If you want second one we do have that for manually created tables (wdt_ID) which is hidden by default. If you have table created from data source easiest way would be to add that column upfront.

    if you have example it could be really helpful