0 Replies Latest reply on Mar 30, 2007 6:38 AM by Ade Rutter

    Treeview Component Customisation

    Ade Rutter
      Hi all,

      The treeview component has a "depthColors" capability for varying the background colour of the tree cells according to depth. However, I would like to implement something similar for varying selection colours according to the tree branch.

      e.g. the nodes would be like:
      <node label="Node 1" col='0x000000'>
      <node label="Child Node 1" col='0x000000'>
      </node>
      <node label="Child Node 2" col='0x000000'>
      </node>
      </node>
      <node label="Node 2" col='0x00FF00'>
      <node label="Child Node 1" col='0x00FF00'>
      </node>
      <node label="Child Node 2" col='0x00FF00'>
      </node>

      </node>
      <node label="Node 3" col='0x0000FF''>
      <node label="Child Node 1" col='0x0000FF'>
      </node>
      <node label="Child Node 2" col='0x0000FF'>
      </node>

      </node>

      and I want each of these rows and their children to have a different selection colour (I want all children to have same selection colour as their parent).

      I have tried modifying SelectableRow.as but have run into problems because each cell does not have a static hierarchical id.

      Does anyone have any suggestions - other than building my own treeview component from scratch (I wanted to use the built-in component to save development time)?

      ade.