just like this
<tr data-index="@x.Id" data-position="@x.Position">
Use either createdRow or, if the data changes, rowCallback to set the attributes.
It looks like you're new here. If you want to get involved, click one of these buttons!
DataTables designed and created by SpryMedia Ltd.
SpryMedia Ltd is registered in Scotland, company no. SC456502.