How to stop agGrid from truncating whitespaces between the values and show the text as is?

Viewed 968

agGrid truncates multiple spaces in between. What if the user does not want to trim the spaces and show the text as is.

Have a look at this screenshot here

1 Answers

agGrid does not trim the white spaces between your value. It just removes the spaces when displaying. If you want to preserve all of the white spaces in the original value, try adding this line in your css file.

.ag-cell {
  white-space: break-spaces;
}

Live Demo

Edit 64375360/how-to-stop-aggrid-from-truncating-whitespaces-between-the-values-and-show-the-t

Related