Show Column only 8 characters

Show Column only 8 characters

maniitsmemaniitsme 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

Answers

  • kthorngrenkthorngren Posts: 21,303Questions: 26Answers: 4,947
    Answer ✓
  • maniitsmemaniitsme Posts: 12Questions: 5Answers: 0

    i defined the render function like below. Still no luck!!!
    'ColumnDefs': [{ data: 'description', render: $.fn.dataTable.render.ellipsis(10), "targets": [2] }],

  • kthorngrenkthorngren Posts: 21,303Questions: 26Answers: 4,947

    'ColumnDefs': [{ data: 'description', render: $.fn.dataTable.render.ellipsis(10), "targets": [2] }],

    The problem is likely the ColumnDefs option. It should be columnDefs with a lower case c. The options are case sensitive.

    Kevin

This discussion has been closed.