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

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

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;
}