I have a WebDataTree that has 2 levels. The Parent node text color is blue and the child node text color is black. I would like to change the Parent node text color to black.
I have tried using the attribute, ForeColor, within the WebDataTree element
ForeColor="black".
I have alse tried using NodeSettings:
<NodeSettings NodeParentCssClass="parentDataTree" />
In my style sheet:
.parentDataTree{ color:Black;}
Nothing seems to change the color.
Hello Gloria,
Thank you for using our community.
If you are using the Default styles from the ig_res folder, all of the Tree nodes should be black. If you want to change only the Parent nodes’ CSS you have to create a custom CSS class with the required styles and apply it to the NodeSettings-NodeParentCssClass property. If you want to change the styling of all of the nodes use the NodeSettings-CssClass property.
.nodeColor {
color:blue;
}
NodeSettings-CssClass="nodeColor"
What is more you can also use the .igdt_Node class to apply your custom CSS.
.igdt_Node {
color: green;
I’m sending you a small sample with the applied styles. Please take a look at it and let me know if you have any questions.