Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    custom row styles in TreeGrid?

    Hi there,
    is there any way to override the style of a row in a TreeGrid, based on whether it's a node with children or a leaf? (Similar to being able to set the icons for each...)
    I would like the leaves to have a different background color and maybe some other styling than the parent nodes, but I'm not sure how to accomplish that.

    thanks
    Dan

    #2
    Yes, override getBaseStyle() (I think this requires a very recent nightly in SmartGWT) and return a different base style for leafs vs folders. This allows a completely separate style series (over, selected, etc states) for nodes vs folders.

    Comment


      #3
      This sample provides an example of overriding getBaseStyle(record, rowNum, colNum) for a ListGrid.

      Sanjiv

      Comment

      Working...
      X