Show Column only 8 characters
Show Column only 8 characters
maniitsme
Posts: 12Questions: 5Answers: 0
I need to show my 3rd column only 8 characters. If the data has more than 20 characters i should show with Dots ...
Example : ABCDEFGH...
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
See if this doc helps:
https://datatables.net/manual/data/renderers#Custom-helpers
Kevin
i defined the render function like below. Still no luck!!!
'ColumnDefs': [{ data: 'description', render: $.fn.dataTable.render.ellipsis(10), "targets": [2] }],
The problem is likely the
ColumnDefs
option. It should becolumnDefs
with a lower casec
. The options are case sensitive.Kevin