seismael
seismael

Reputation: 227

Flex datagrid wordwrap customization

I would like to use the word wrapper for datagrid header, the problem is that it cuts the word to a new line, what i need is to add - sign after the word cutted...

what i mean is:

admins-
trator

Upvotes: 0

Views: 619

Answers (1)

Gregor Kiddie
Gregor Kiddie

Reputation: 3119

you'll have to extend the DataGridHeader class to do this manually, then assign it as the headerRenderer on all your DataGridColumns.

This isn't a trivial task. You'll need to use line metrics to establish the length of the string, split it up yourself and add the requisite "-".

Upvotes: 1

Related Questions