set tree item style from code
Does anyone know how to set the style of a tree item (node) from code, not css? The following example works OK for the first tree on a page, but if I add a second tree then I get the javascript error "this[getInt[p]] is not a function.
tree.defineItemProperty("mycolor", function(index){
return index % 2 == 0 ? "red" : "black";});
tree.getItemTemplate().setStyle("color", function(){
return this.getItemProperty("mycolor");});
CK
October 14,