setStyle Safari/Chrome

Hi,
I have a little problem using setStyle with Safari,Chrome
When I use it, it only displays the header but the rows don’t display.
I don’t have this problem using FF and IE
This my code


mygrid.init();
mygrid.setSkin(“light”);
mygrid.setStyle(“font-size:13px”,“font-size:13px;”,“font-size:13px”,“font-size:13px”);

Any help?

Stan

Hello,
that bug is already fixed. Please download the latest version of dhtmlXGrid.

Hi,

I am using version Professional edition build 110318(with IE9 fix applied), if I use the setStyle as follows

mygrid.init();
mygrid.setSkin(“dhx_skyblue”);
mygrid.setStyle(“background-color: #9a8EBC;color: #B7B0CF; font-weight: bold;”, “”,“color: red;”, “background-color: #9a8EBC;”);

This works fine in FF 4 (Mac & Win) however Safari 5.0.4 does not show any data in the grid the error console in Safari reports the following error as soon as the grid loads

SYNTAX_ERR: DOM Exception 12: An invalid or illegal string was specified. …/js/dhtmlxgrid.js:287

If I take out the setStyle then the grid displays data correctly, but obviously is not styled correctly.

Any idea ?

Thanks,

Hello,
Unfortunately issue can’t be reconstructed locally.
You can open ticket at support.dhtmlx.com so we’ll provide you a sample