schaphekar
schaphekar

Reputation: 495

Vaadin 14 - Grid Column Header Formatting

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?

Upvotes: 4

Views: 313

Answers (1)

schaphekar
schaphekar

Reputation: 495

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

Upvotes: 4

Related Questions