Hi Heutmekers, you can do that when you are binding the nodes. try something like that:
var oTreeNode = new sap.ui.commons.TreeNode({
text: {
path: "bind",
formatter: function(value){
if(value... /* Condition.. */){
this.addStyleClass("class1");
}...
}
}
});