Dialog header in v6 – resolved

Hey,

i've updated Radzen from v5.5.3 to v6.6.4 and up until v6 (i pressume...) there was possible to use HTML string as dialog title and thus modify it's structure. From v6 the HTML string won't get evaluated and instead html title is this raw html string. Is there some other way in v6 how to do this?

Hi @ns6000,

You can use the TitleContent property of DialogOptions or the OpenAsync overload that supports custom title content as the first parameter:

await DialogService.OpenAsync(ds => @<strong>My Title</strong>,  ds =>
        @<RadzenStack Gap="1.5rem">
               Child content
        </RadzenStack>);

Thank you! That solved it. Problem was i was using OpenAsync<T> and typed version does not have RenderFragment variant, but i used TitleContent of DialogOptions as you suggested and it's working.