3.2.0

How to use <sup> HTML tag in grid ?

I want to display data as sup script e.g i want to display EMC2 (2 will display as c to the power of 2, like a C square).

When i use <sup> tag, its only display EMC only.

Waiting a respose........
madhu
madhu
June 2,
Did you include closing tag? This code works fine for me -

obj.setCellText("e=mc<sup>2</sup>");

(or if you send data via XML did you encode <> chars?)
Alex (ActiveWidgets)
June 3,
Thanks.

But problem is that how can i display a single column data. I am using JSP, so how can i use obj.setCellText(myData) method ?

I have more than 100 rows in the grid with 15 columns. For a single column, i got data from some other functions.

e.g I have a column Product Number & i fetch product number from a function1 & also fetch total number of quantity from other functions, say function2. I want to merge these two fields into a single field/column.
That is,

<font color=red> productNumber <sup>*(totalQty)</sup></font>

When i use this code, i got totalQty is 0. But when i use simple HTML page, its give some value.



madhu
June 3,

This topic is archived.

See also:


Back to support forum