Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Nick Armitage on Aug 30, 2007 00:36
open dhtmlx forum
dhtmlxGrid

I know you can use grid.setRowTextBold and grid.setRowTextNormal and grid.setRowTextStyle in javascript once the grid has loaded to specify a style.
But how do you specify the style of a cell when creating the XML dynamically on the server?
In other words, is there anything I can put inside the <cell ....>My Text</cell> to specify style.
Answer posted by Stanislav on Sep 05, 2007 18:25
You can use

In XML
<cell class='my_css'>My Text</cell>

In HTML
<style>
    .my_css{
        any css here
     }
</style>


In latest build it also possible to use next syntax

    <cell style='color:red; or any other direct style'>My Text</cell>