This is not what I am looking for. This adds data-id to the <tr> element and i need to add data-id to the <td> element so I just need to understand how htmlOptions on the columns work with dynamic data!
htmlOptions doesn’t work with dynamic data. article_id is part of a row in your database, so you can only attach it to the row element in your HTML table. It’s easy to get the value from within the column.