I want jQuery datatables to automatically create row number column in the first column like datagrid in VB.
It looks like this:
Anyone knows how to do this?
Just write a render function:
{ "data": "id", render: function (data, type, row, meta) { return meta.row + meta.settings._iDisplayStart + 1; } }
2.1m questions
2.1m answers
60 comments
57.0k users