0 Replies Latest reply on Nov 15, 2007 5:48 AM by Cheree Singal

    Coloring a particular row of a tree

    Cheree Singal
      Hi,
      I have a tree whose data provider is an XMLListCollection like:

      Node 1
      Sub-node 1
      Sub-node 2
      Node 2
      Sub-node 1
      Sub-node 2

      I want the row of Sub-node 1 to be in red color whereas all other rows should be white. I have tried such a thing with data grid using drawRowBackground() function and it worked but in a tree, I observed that the drawRowBackground() function only iterates for 1st level nodes i.e., Node 1 and Node 2 rows. I mean that the variable 'dataIndex' takes only 2 values 0 and 1 instead of 0,1,2,3,4,5. How do I get access to the inner levels? Please help.

      Thanks in advance,
      Cheree