Flex DataGridColumn displays multi-line string data

Is it possible to display a multi-line row in a Flex DataGridColumn?

i.e. Display:

Text string.

Text line 2.

I'm trying to put "\ n", "\ r", " 

" when saving a string, but nothing seems to work.

Currently only "Text line one". And the rest is hidden in the cell. I would rather not use "wordWrap = true" to emulate this behavior in a cell, but could instead manually put breaks on a new line (although I could have included wordWrap to avoid long text hiding due to cell sizes). Thanks for any answers.

+2


source to share


3 answers


you will need to create both itemrenderer and use the mx: Text component. Then you can break on a new line using "
"

, \ n or \ r



+3


source


Nothing. Setting "wordWrap = true" and "variableRowHeight = true" seems to work.



+4


source


I don't know if you are solving your problem or not, but if others can get help.

The perfect solution is

  • Install variableRowHeight = true;

  • Install wordWrap = true;

  • For datagrid column use itemEditor="mx.controls.TextArea";

Thank,

Swapnil.

+4


source







All Articles