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; } }
1.4m articles
1.4m replys
5 comments
57.0k users