Vaadin 14 - Grid Column Header Formatting

Viewed 158

I have some special characters in some of my column headers, such as "-" and "*". When these column names are rendered in the Grid, they include a space before and after the sequence.

In other words, if my original string was "CUR-A1" then it would be displayed as "CU R- A1" instead.

Is there any way to disable this kind of auto-formatting?

1 Answers

This turned out to be a pretty simple fix - I was using SharedUtil.camelCaseToHumanFriendly(header) for each header, which introduced the strange formatting.

Related