Announcement

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

    How to show grid lines on a TreeGrid

    I am using Smart GWT 3.0 - LGPL

    I have a TreeGrid and I need to show the grid lines on it. The same grid lines that you see on a ListGrid. By default, there are no horizontal/vertical lines on the TreeGrid. I am assuming this is possible, but I couldn't find the correct api to call or an example.

    And, can you indicate what horizontal lines you want to show/hide? For example in the TreeGrid, only show a horizontal line under tree nodes that are children of the root node?

    Can anyone help with this?

    Thanks,
    Cory

    #2
    See TreeGrid.showConnectors.

    Comment


      #3
      I tried TreeGrid.setShowConnectors(true);

      and it displayed connector lines illustrating the tree's hierarchy.

      But is there also a way to display grid lines (horizontal and vertical) for the underlying ListGrid?

      Thanks,
      Cory

      Comment


        #4
        You mean row boundaries? Yes, either use listGrid.alternateRowStyles or just define a CSS style for listGrid.baseStyle that has top and bottom borders.

        Comment

        Working...
        X