createdRowrowCallback: function (row, data) { if ($.inArray(data.DT_RowId, selected) !== -1) { $(row).addClass('selected'); } }