Announcement

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

    TreeGrid - open one node and change background color parent node

    Hi, I have two questions.

    I have this situation:
    Click image for larger version  Name:	tree_grid.png Views:	0 Size:	8.7 KB ID:	265158
    How to open with js code only treeGrid record with the black arrow?
    To open everything I know: "openAll ()", to close: "closeAll ()".
    For example, I have a "myTreeGrid" treegrid, to open everything:
    myTreeGrid.data.openAll ().

    And to give the parent node a different backgorund color? The one with the yellow arrow.

    Thanks in advance for your help.

    #2
    Simply read the docs for Tree: there are APIs such as openFolder().

    To change row-level styling, look at getBaseStyle and getCellCSSText() on ListGrid (TreeGrid's superclass).

    Comment

    Working...
    X