⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

How to auto increment in datatables view??



Yu Ri
  • profile picture
  • Member

Posted 29 July 2013 - 02:17 AM

Hi, Can anyone tell me how to add auto increment Nº collumn in datatables view?

(Start from 1 in every page) and look like example in flexigird below.

crrud.png


ceroberoz
  • profile picture
  • Member

Posted 29 July 2013 - 05:15 AM

(implying Nº is a primary key) is set auto increment on Nº column via phpmyadmin didn't work?

1760315-N4ZGZ5D.png


Yu Ri
  • profile picture
  • Member

Posted 29 July 2013 - 08:06 AM

CeroBero. my english is suck. what i mean is to add a collumn that have increment value. not value that we select from database. Thnk u :)


davidoster
  • profile picture
  • Member

Posted 29 July 2013 - 09:13 AM

Possibly you can use the fake column feature (just add on the columns on the 1st place a name) and then use callback_column to modify the numbering of the column.