setStyle problem in Chrome and Opera

This command does not work in Chrome and Opera.
It leads to error and strange behaviour.

TslGrid.setStyle("","font-weight:bold;","","");

Please check if you are using latest version of dhtmlxGrid

Hi,

I downloaded dhtmlx suite 2.0 on 22nd of septemper 2009.
As far as I can see the Grid version is 2.5.

There is informaion on the net that Chrome can’t handle fontstyle=bold for fonts missing the bold alternative. IE and Firefox fix this anyway. So I tried font-family:Verdana;font-style:bold ( Verdana works outside Grid ), but with the same result.
The grid’s CSS-fontstyle is Tahoma ( skin=dhx_skyblue ), and Tahoma has a bold version so the font switch to Verdana should not make things better anyway.

/BJDA

Try change the syntax as

TslGrid.setStyle("",";font-weight:bold;","","");

It may look as unimportant change, but may be critical for Webkit based browsers.

I am sorry, but the semicolon did no change.
Both IE and Firefox work with and without the preceding semicolon.

/BJDA

Try to use dhtmlxgrid.js from the attached sample.
1269962670.zip (85.6 KB)

Excellent!

Thank you

/BJDA