applying css to a column in a textgridsss2

I have columns defined in a testgridss2 that i wish to apply a mono spaced style. I have defined in the application designer on the column in the binding section a variable name to the property textstyleprop.

In my natural application, I have added the following logic:

move “font-family: Monaco, Courier, monospace;” to po_lines_css(#a)

Where po_line_css is the name of the variable defined in the application designer for the property textstyleprop.

After stowing the natural application, I can see no difference in the display of the variables.

Am I using the incorrect application designer property, or is it not possible to apply a style to column variables in a textgridss2?

Thanks for any insights.

Norm

Hi Norm,

The textstyleprop in the textgridsss2 control works OK in my environment.
Do you use the HTML-client or do you use SWT?

Just to be sure there is no misunderstanding: The textstyleprop changes the textstyle of the column per row. It does not change the textstyle of the column header.

This means, in your Natural Adapter you get something generated like:


1 MYSSSGRID (1:*)
2 COL1 (U) DYNAMIC
2 COL2 (U) DYNAMIC
2 COL3 (U) DYNAMIC
2 PO_LINE_CSS (U) DYNAMIC
2 SELECTED (L)
1 MYSSSGRIDINFO 

Different PO_LINE_CSS values can be specified for different rows.

Best Regards,
Christine

Christine,

I’m using the SWT client.

What values are you moving to the po_lines_css?

In my natural application, I move “font-family: Monaco, Courier, monospace;” to po_lines_css(#a) and see no impact on the display of the data.

Thanks for the help,

Norm

Hi Norm,

Do you see the font when running the HTML-Client?

Regarding style settings there are differences between SWT and HTML client.

Best Regards,
Christine