RadzenPanelMenuItem Icon property render html as text

Hi,

With the latest release v6.5.3 I have an issue with adding a custom icon as below:

<RadzenPanelMenuItem Text="test" Icon="@("<i class=\"fas fa-clipboard-list\"></i>")"></RadzenPanelMenuItem>

also this isn't working:

<RadzenPanelMenuItem Text="test" Icon="@(((MarkupString)"<i class=\"fas fa-tachometer-alt\"></i>").ToString())"></RadzenPanelMenuItem>

my icon now is rendered like this: &lt ;i class="fas fa-clipboard-list"&gt ;&lt ;/i&gt ;

Did something changed, as this used to work until now. Do I have another option ? or it's a bug.

Thank you!

Hi @Florin_Paraschivescu,

You can check here: https://blazor.radzen.com/changelog?theme=material3#v6-markupstring

Also this thread may help you: Inject icons since 6.4.0

1 Like

Thank you!

I've used this way below to do it.

<RadzenPanelMenuItem Text="Test" title="Test">
    <Template>
        <i class="notranslate rzi rz-navigation-item-icon"><i class="fas fa-angle-double-left"></i></i>
        <span class="rz-navigation-item-text">Test</span>
    </Template>
</RadzenPanelMenuItem>
1 Like