Can we add custom column index in Jquery datatable instead of default 0, 1, 2?

Can we add custom column index in Jquery datatable instead of default 0, 1, 2?

vishalmelmattivishalmelmatti Posts: 5Questions: 1Answers: 0

I am using jquery datatable 1.9 version. I am preparing my table columns dynamically which comes from database and has unique id. I want to assign that unique id in database as an index to datatable columns so that I could easily map backend result sets with the column index.

Is there any way to assign custom index. By default it take 0, 1, 2 etc.

I have already reffered documentation but couldnt find any parameter to assign index

http://legacy.datatables.net/usage/columns#mData

This discussion has been closed.