Hi,
Is it possible to change the color of Radzen Label based on a condition? If true show the label in red, else show the label in green.
Hi,
Is it possible to change the color of Radzen Label based on a condition? If true show the label in red, else show the label in green.
Hi @n_t_in,
You can try something like this:
<RadzenLabel Style="@($"color: {(condition ? "red" : " green")}")" Text="Text" />
This actually does not work as the interpolation stops when there is a colon.
I updated my reply to include parentheses inside the interpolation and it now works.