Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Lonnie on May 16, 2007 18:25
open dhtmlx forum
I cannot get cell based styles applied to a dhtmlxGrid cell.

I am providing the following cell specification in the loaded XML for a dhtmlxGrid, however the rendered grid does not seem to be affected (underlined or red). According to the documentation, I should be able to add a style attribute to the cell tag. Am I doing something wrong?

<rows>
<row id="0">
<cell style="text-decoration: underline; background-color: red;">show doc</cell>
<cell>Release notes</cell>
</row>
</rows>
Answer posted on May 16, 2007 20:07
Please try the next

in you HTML code
<style>
    .myCss{
    text-decoration: underline; background-color: red;
    }
</style>

In XML

<rows>
<row id="0">
<cell class="myCss">show doc</cell>
<cell>Release notes</cell>
</row>
</rows>
Answer posted by Darya (Support) on Dec 11, 2014 00:06

Having solved the problem mentioned above, you may also look through the possible related problems with html select autocomplete and javascript for calendar.