Focal Point
[SOLVED]maintain JS Grid javascript- strikethru font

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/1507031826

January 22, 2013, 08:34 AM
brad-s
[SOLVED]maintain JS Grid javascript- strikethru font
In 7.7.03, I have a maintain form with a JS Grid object. I am using javascript to dynamically format the cells.

How do I invoke the strike thru font option?

I aam using the CellSetFontSyle to set the font size and bold.
Example:
Input_FORM.Grid1.CellSetFontStyle(kcol,krow,"font-weight:700;font-size:13px;");

Can I use this to also set the strike-thru option?

This message has been edited. Last edited by: brad-s,


Brad S.
WF 8.05 / Win7 /Tomcat Self Serve
January 22, 2013, 10:37 AM
Maintain Wizard
Brad
Add the text-decoration parameter at the end of the format line. Something like this:

Form1.Grid1.CellSetFontStyle(1,0," font-weight: 700;font-size: 24px; text-decoration: line-through;");

That will format the text when the user exits the cell.

Mark
January 24, 2013, 02:29 PM
brad-s
SOLVED

Thanks - works great!


Brad S.
WF 8.05 / Win7 /Tomcat Self Serve