How do I change the appearance of the check box of a particular node.
I have a handle on the UltaTreeNode where can I set the the background color of the check box area only and /or the check mark itself?
For example, it is curently defaulted to green
Hi,
I'm not sure what you mean? What is currently defaulted to green? Are you talking about the area inside the box? Is this a checkbox in a cell or a checkbox on the node?
You normally cannot apply colors to a checkbox, they are usually drawn by the system. If you are using the latest version of NetAdvantage, a new GlyphStyle property added in v8.2, but this property would affect all checkboxes in all Infragistics controls, there's no way to change the appearance of a single checkbox on a single node via a property. The only way to do that would be to use a DrawFilter and draw the CheckBox yourself. Or use an UltraCheckEditor control in CustomStyle and use images for the checked states.
What version of the controls are you using?
Actually, I don't think the Custom Style UltraCheckEditor will work here because UltraWinTree doesn't use editors for the CheckBoxes you are showing in your screen shot here.
So that leaves either Glyphs or a DrawFilter. If you are using v8.2 or higher, you can use the new GlyphInfo property.
If not, then you will need to use a DrawFilter. If you are not familiar with DrawFilters, search the Infragistics Knowledge Base and you will find lots of articles and samples. Also, get the Infragistics UIElementViewer Utility. It's a huge help when working with UIElements.
Hi Mike,
v8.2 UltraTree control does not have GlyphInfo property.
I would like UltraTree checkbox to look similar to UltraCheckEditor with Office2007 check box glyphs
Regards, Roman.
Hi Roman,
No, there's no property specifically for the tree. You have to set a static property which will affect all Infragistics controls:
UIElementDrawParams.CheckBoxGlyphInfo = UIElementDrawParams.Office2007CheckBoxGlyphInfo;