Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Jimmy on Mar 26, 2008 08:03
open dhtmlx forum
row css

Hello,i use the function enablealtercss() it's cool . but in my XML i want to force the css of some rows but the altercss has the priority on the attribute background-color...
Answer posted by Support on Mar 26, 2008 11:13
The rough priority order of elements
a) bgColor attribute in XML and setRowCollor js command
b) class attribute in css
c) alterCss colors
d) style attribute in xml and setRowTextStyle js command

So you can use style attribute in XML to override alterCss value, or still use class attribute in XML, but with full class naming

In HTML
<row class="my_red">  ....
In XML
<style>
    div.gridbox table.obj .my_red{
            background-color:red;
     }
because css rule name include additional details it will override alterCss styles