Is it possible in RadzenText to display the text as HTML? I don't want to use HTML editor because the Background color wouldn't match. I am trying to create a news page with Radzen.
try render as MarkupString
1 Like
This does not work for me. I have a string variable, message. When I try this syntax on a RadzenText control, Text="@((MarkupString)message)", it will not even compile.
The error is, "Cannot convert from MarkupString to string". What am I doing wrong?
You can't use this approach to set a string property. You can use it as child content though:
<RadzenText>@((MarkupString)message)</RadzenText>
Awesome! This works perfectly, thanks.