


I want to change the font color in a dynamic table based on a dropdown. The code I have only works for the cell. I would like the font for the entire row to change.
DropDownList1 - Change event:
if (xfa.event.newText == "Completed"){this.font.fill.color.value = "255,0,0";}
else if (xfa.event.newText == "Modified"){this.font.fill.color.value = "0,0,255";}
else if (xfa.event.newText == "New"){this.font.fill.color.value = "0,128,0";}
else {this.font.fill.color.value = "0,0,0";}
Thanks for your help!
Views
Replies
Sign in to like this content
Total Likes
I put the following code in the other cells on the Enter event and it worked:
if (DropDownList1.rawValue == "Completed"){this.font.fill.color.value = "255,0,0";}
else if (DropDownList1.rawValue == "Modified"){this.font.fill.color.value = "0,0,255";}
else if (DropDownList1.rawValue == "New"){this.font.fill.color.value = "0,128,0";}
else {this.font.fill.color.value = "0,0,0";}
Views
Replies
Sign in to like this content
Total Likes
I put the following code in the other cells on the Enter event and it worked:
if (DropDownList1.rawValue == "Completed"){this.font.fill.color.value = "255,0,0";}
else if (DropDownList1.rawValue == "Modified"){this.font.fill.color.value = "0,0,255";}
else if (DropDownList1.rawValue == "New"){this.font.fill.color.value = "0,128,0";}
else {this.font.fill.color.value = "0,0,0";}
Views
Replies
Sign in to like this content
Total Likes