Recommand · October 14, 2021 0

How can I add ellipses (…) for longer text in an AgGrid?

I have below ag grid field where I want to add ellipses – (…) for characters greater than 100.

I tried below looking at few material over internet , but its not working –

{
  field : 'Latest Comments',
  headerName :  'Latest Comments',
  width : 250,
  cellStyle : { 'text-overflow':'ellipses','white-space':'nowrap'}
}