Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Christoph on Apr 29, 2007 17:53
open dhtmlx forum
Is it possible to set background color of a cell via XML?

Is it possible to set the background color of a cell via XML
Example:
<rows>
<row id="31" class="blue">
<cell class="blue">31</cell>
...
I have the colors stored in a database and want to load them with XML or is there another chance to make that
Thanks
Answer posted on May 05, 2007 15:34
you can use userData sections

<rows>
    <userdata name="a1">b1</userdata>
    <row id="some">
         <userdata name="some1">some2</userdata>

In this sample userdata "a1" attached to grid itself and can be obtained by
     grid.getUserData("","a1");

userdata "some1" attached only to row "some"
      grid.getUserData("some","some1");


You can store any info in userData sections ( there may be unlimited number of them ) and use it in any way after XML loading.


Answer posted by Andrei (Support) on Nov 28, 2014 23:03

The information connected with ajax treeview control and pop up date picker also can help you, so please check it too.