Revision history [back]

click to hide/show revision 1
initial version

answered 2014-03-19 13:51:14 +0800

IngoB gravatar image IngoB flag of Germany

treeitem.getTreerow().getChildren() -> List<Treecell>

treecell.setStyle("background:red");
treeitem.getTreerow().getChildren() -> List<Treecell>

treecell.setStyle("background:red");
treeitem.setStyle("background:red");
    if (index % 2 == 0) {
        treeitem.setStyle("background:red");
    } else {
        treeitem.setStyle("background:green");
    }
    if (index % 2 == 0) {
        treeitem.setStyle("background:red");
    } else {
        treeitem.setStyle("background:green");
    }

http://zkfiddle.org/sample/6161o7/1-TreeItem-colored

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More