3.0.0

Can grid cell display just up to a line break in the data?

Let's say my source data is over two lines e.g.
Line1
Line2

In the JS array this looks like
"Line1\r\n Line 2".

In the grid cell (which is just one line high) I see "Line 1 Line 2", whereas I want the option to see just "Line1" (i.e. the display in the grid cuts off at the line break). I've looked by can find the answer. Any ideas if this is possible?

Thanks
Justin
Justin
February 20,
Alex, are you able to help with this?
Justin
March 4,
Check if 'html' format dysplays it as needed. i.e. in the 2ยบ example of http://www.activewidgets.com/aw.ui.grid/cell-format.html
change the line:
["Cell <i>text</i>", "123", "5/18/2004"],
with :
["Line1\r\n Line 2", "123", "5/18/2004"],

Also if cell edition is mandatory, this post could give some ideas
http://www.activewidgets.com/javascript.forum.26505.24/grid-cell-not-displaying-white.html
HTH
Carlos
March 7,
Thanks Carlos. I couldn't get those working though.

Alex - any thoughts?
Justin
March 25,
Alex, any thoughts?
Thanks
Justin
Justin
April 21,
Just checking if Alex could comment? Thanks
June 8,

This topic is archived.

See also:


Back to support forum

Search

Version 2

Looking for AW 2.6 ?
The old site is here.