3.2.0

How to display unformatted string in a GRID?

Hi,

Am using a grid and setting the values using a 2D array via setCellData().
When I add a string to a cell with an @ symbol, this gets converted to a hyperlink. Is there a way to just display/store this as plain text without the HTML formatting? I tried using setCellText() after I went through an article posted here which suggested setCellText() to avoid formatting. But the problem still exists. Any thoughts?
I am new to this, started using active widgets only for 2 days now..
D
November 9,
Are you using the recent version (2.5.x)? At which point do you see the hyperlink (on initial rendering or after cell edit)? Are you using any formatting classes (AW.Formats...)?
Alex (ActiveWidgets)
November 9,
Hi Alex,

We are using 2.0.2.

I get it on both occassions. What I mean is, say the initial text is "hello" and then I modify this as "hello@x" and save, it still displays fine. I can edit this as long as I dont use the back arrow while editing. Once I use this key, the whole text turns into a hyperlink and if I save this, it stays like that and even if I remove '@' from the string, it still stays a hyperlink!!
D
November 13,
Hi Alex,

The only formatting we are using is setCellFormat(currency,4).. This is a different column to the one I am having a problem on.
D
November 13,
This behavior is built into IE contentEditable feature. Because of that AW 2.5 no longer uses contentEditable spans but instead uses normal <input> elements. So this issue is fixed in 2.5.x
Alex (ActiveWidgets)
November 13,
Thanks Alex.. That worked like a charm.
D
November 13,

This topic is archived.

See also:


Back to support forum