ellipsis fix for aoColumnDefs
ellipsis fix for aoColumnDefs
meneleyh
Posts: 3Questions: 2Answers: 0
"aoColumnDefs": [
{ bVisible: false, aTargets: [ 2 ] },
{ bVisible: false, aTargets: [ 4 ] },
{ bVisible: false, aTargets: [ 11 ] }
],
"columnDefs": [ {
targets: [5, 12],
render: $.fn.dataTable.render.ellipsis(40)
} ],
This does not work, but if I remove aoColumnDefs section, it does work. Any solutions?
Have already tried order change.
This question has an accepted answers - jump to answer
Answers
aoColumnDefs
is the legacy version of thecolumnDefs
option. See the legacy option conversion guide for details. Since they are the same the first (aoColumnDefs
) is overwriting the second (columnDefs
). Combine all of the above into onecolumnDefs
option.Kevin
Thank you, that did the trick.