Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82031

How to use index column with data source

$
0
0

I am trying to use an index column that automatically shows row counter based on sort.

I am using this example: https://datatables.net/examples/api/counter_columns.html

But I can't figure out how to get it to work when using "columns" as well.

This is what my code looks like: https://hastebin.com/egegisuraq.js

I believe the issue is related to the fact I specified my columns with "columns" but I don't know how to specify a placeholder for this rendered column that represents the row ID based on current sort. I tried using "null" but that did not work.


Viewing all articles
Browse latest Browse all 82031

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>