Truncate String only in IE Browsers

Truncate String only in IE Browsers

gribasgribas Posts: 1Questions: 0Answers: 0
edited April 2014 in DataTables 1.9
Hi all,

First, thanks for your amazing library, it helps me a lot on my daily work! :)

I have a issue with datatables, I'm getting the data from the server via sAjaxSource, all works fine in firefox and chrome but for large names on Internet explorer is truncating the value,

http://postimg.org/image/xnsfu7sgv/

I set up my datatable as follows:

[code]
$('#' + resultTableId).dataTable({
"bDeferRender": true,
"bFilter": true,
"bSort": true,
"bInfo": true,
"bProcessing" : true,
"bSortClasses": false,
"bJQueryUI" : true,
"bLengthChange" : false,
"bAutoWidth" : false,
"sPaginationType" : "full_numbers",
"bStateSave" : false,
"iDisplayLength" : 20,
"sAjaxSource" : "someurl",
"sAjaxDataProp" : sAjaxDataProp,
"aoColumns" : [
{"mData" : "code", "bSortable": false, "bSearchable": false},
{"mData" : "description" ,"bSortable": false, "bSearchable": false},
{"mData" : "reimbursementPrice","bSortable": false, "bSearchable": false},
{"mData" : "codingInstruction","bSortable": false, "bSearchable": false},
{"mData" : "name","bSortable": false, "bSearchable": false},
{"mData" : "pkSize","bSortable": false, "bSearchable": false},
{"mData" : "strengthMeasure","bSortable": false, "bSearchable": false}
],
"fnInitComplete" : function(oSettings, json) {
var total = json.products.length;
if(total != 0) {
enableButtonDownload();
}
}
});
[/code]

What I'm doing wrong?

Thanks!

Replies

  • allanallan Posts: 63,576Questions: 1Answers: 10,483 Site admin
    Is it really the length of the string that is the issue, or is it the `&` character? Can you link to a test case please.

    Allan
This discussion has been closed.