:: Forum >>

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
Wednesday, February 20, 2013
Alex, are you able to help with this?
Justin
Monday, March 4, 2013
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
Thursday, March 7, 2013
Thanks Carlos. I couldn't get those working though.

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

This topic is archived.


Back to support forum

Forum search