burnchar said: It is also noteworthy (another bug report?) that the headers do not line up with the regular table cells
$('#market-klse-results table').dataTable({
'bPaginate': false,
'bFilter': false,
'bInfo': false,
'bAutoWidth': false,
'aaSorting': [],
'aoColumnDefs': [
{'sType': 'string', 'aTargets': [0, 1]},
{'sType': 'numeric', 'aTargets': [2, 3, 4, 5, 7, 8, 10, 11]},
{'sType': 'numeric-comma', 'aTargets': [9]}
]
});
var expr = new RegExp('>[ \t\r\n\v\f]*<', 'g');
document.body.innerHTML = document.body.innerHTML.replace(expr, '><');
<tr> <td> @item.FluorNo </td> <td class="data_Requisition"> @item.Requisition </td> <td> @item.PO_number </td> <td> @item.PO_Status </td> </tr>
<tr> <td>@item.FluorNo</td> <td class="data_Requisition">@item.Requisition</td> <td>@item.PO_number</td> <td>@item.PO_Status</td> </tr>
var expr = new RegExp('>[ \t\r\n\v\f]*<', 'g');
var tbhtml = $('#datatable').html();
$('#datatable').html(tbhtml.replace(expr, '><'));
BUT: the searchfield, in IE9 offcourse, doesn't work anymore when I use :
It looks like you're new here. If you want to get involved, click one of these buttons!
Get useful and friendly help straight from the source.