as suggested i tried ellipsis plugin but it is not wrapping text and highlighting the row selection is also now working. Below given code please let me know how to get fixed these issues.
let table = $('#agentSelectionTable').DataTable({
data: availableAgents,
"columns": [{
"data": "userName"
},
{
"data": "firstName"
},
{
"data": "lastName"
},
{
"data": "startDate"
},
{
"data": "endDate"
},
{
"data": "replacementAgent"
},
{
"data": "comment"
}
],
columnDefs: [{
targets: 2,
render: $.fn.dataTable.render.ellipsis(10)
}],
"createdRow": function (row, data, index) {
if (data[5] != "") {
$('td', row).eq(5).addClass('highlight');
}
}
});