I want to write something like this on the c# side:

protected void eventHandler(object sender, DevExpress.Web.SomethingTreeViewEvent e){

  //figure out color mapping, may depend on date and time, whatever.

  foreach (node in in mytree)
     node.textColor = colorMapping(mappingFunc(node));
}

Question is, what is the method for setting the color? There is TreeViewNodeTextStyle, but is is read only, and it's constructor takes no arguments.

Related posts

Recent Viewed