In my project I’ve created a dataTable, Everything is working fine except one particular case.
While performing searching, my datatable is also searching the text inside the href with in the anchor tag. But i don’t want to consider this case.
Hope you understood my issue. Any help will be much appreciated.
I’m using version DataTable 1.9.3
My javascript :-
$('#dataGrid').dataTable(
{
"aoColumnDefs": [
{ "sType": "html", "aTargets": [1] },
{ "bSortable": false, "aTargets": [0] },
{ "bSearchable": false, "aTargets": [0] }
],
"bPaginate": false,
"bLengthChange": false,
"bFilter": true,
"bInfo": false,
"aaSorting": [[1, 'asc']]
});
I found the issue finally, the issue was with the version of data table I applied.
I used one of the most latest version of data table – DataTables v1.9.3 and got this issue.
I also checked with the their most latest one – DataTables v1.9.4 and it also have the same issue. Both datatables consider the href value of anchor tag while searching.
Finally i went with the Datatable 1.9.0 version and now it is working as expected.
Thanks all for your help