Apply style to a cell by XML

Hello,

I can’t apply a style to a cell by using the XML loaging method.

My XML is like this

... <cell style="color:blue;"> second column data </cell> ...
And the text is not in blue in my browser.

The DOM looks like this : note the “textCSS: undefined” inserted in the style attribute of TD. I dont understand where it comes from.

<TD style="textCSS: undefinedcolor:blue;" title="second column data" bgColor=red align=left _cellIndex="0" obj="null">second column data </TD>

The object of setting a style on a cell (and not to its content) is to make a cell look like an input text fied. So don’t suggest me to use a style on the content, it won’t help me :wink:

Thank you for your help.

EDIT 2 : By this way i cannot apply, for example, a border to the cell. I don’t have solution.

EDIT : In fact, i was using the wrong xml source. And only for the class attribute it finaly works. I can use this attribute to modify the cell style. But the style attribute still does not work. So my problem is still “open”.

I’ve tested the class attribute and it doesn’t work better. The class attribute is generated in the dom but its content is empty :
If i put class="edCellStyle" the generated code is class=" "

Is there something special with the style ? I’ve used this style attribute on a cell in a XML stream without any problem, but today it doesn’t work anymore.

but today it doesn’t work anymore.
Have you changed version of dhtmlxGrid?