Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flex DataGridColumn display multiline string data

Is it possible to display a multiline string in a Flex DataGridColumn?

i.e. Display:

Text line one.

Text line two.

I've tried putting "\n","\r","
" when storing the string but nothing seems to work.

Currently only "Text line one." is displayed and the rest is hidden in the cell. I would prefer not to use "wordWrap=true" to emulate this behaviour in the cell, but instead be able to manually put in newline breaks (although I could turn on wordWrap to avoid long text from hiding due to cell dimensions). Thanks for any replies.

like image 382
raptors Avatar asked Sep 14 '26 02:09

raptors


2 Answers

Never mind. Setting "wordWrap=true" and "variableRowHeight=true" seems to work.

like image 195
raptors Avatar answered Sep 16 '26 07:09

raptors


I don't know whether you solve your problem or not but might other can get help.

The perfect solution is to

  1. Set variableRowHeight = true;
  2. Set wordWrap = true;
  3. For datagrid column use itemEditor="mx.controls.TextArea";

Thanks,

Swapnil.


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!