Okay
  Public Ticket #1447750
Table column possibility
Closed

Comments

  •  1
    Christophe started the conversation

    Hello

    Is it possible to show a row number in a column? To be used for a ranking.

    Regards

    Christophe

  • [deleted] replied

    Hi Christophe,
    Thank you for the inquiry.

    Do you mean on something like that https://datatables.net/examples/api/counter_columns.html (This column should not be sortable, and will change dynamically as the ordering and searching applied to the table is altered by the end user) or just normal index column that will be not updated dynamically?

  •  1
    Christophe replied

    Hi Milos

    Yes but indeed not updated dynamically. So YES to just normal index column that will be not updated dynamically.

    Can it be done with your plugin?


    Regards

    Christophe

  • [deleted] replied

    Hi Christophe,

    Then it is possible. If you are creating Manual wpDataTable there will be always wdt_id column that will be primary key in the database table. Otherwise if you are creating table that is not Manual (Excel, CSV, Google Spreadsheet...) you can always create column like that in your data source file, and create wpDataTable from it.

    You can try our sandbox site: Front-end & Back-end - you can find a fully functional version there to try out all plugin features.