I want to show confirm message with multi line of text
i tried \n Envirenement.NewLine but nothings work
if( await DialogService.Confirm("confirm", "Are you sure you want to delete this mesage \n "+ Environment.NewLine +" <br /> - other eneties will removed also") == true){
// delete
}```
Iโm currently using Radzen version 6.4.0 (released on March 29, 2025) and Iโve noticed that the DialogService.Alert() and DialogService.Confirm() methods do not render HTML in the message parameter.
I tried passing a message with <br /> tags to create line breaks, but the tags are shown as plain text instead of being interpreted as HTML.
Is HTML still supported in the message parameter? If not, is there a recommended way to show multi-line messages without building a custom dialog?
The line responsible adding the text was changed from:
b.AddContent(i++, (MarkupString)message);
to:
b.AddContent(i++, message);
This change treats the message as plain text.
As the DialogService.Confirm() is virtual you could provide your own implementation restoring the old behavior, or simply add an extension method, which takes a MarkupString instead of string. A more advanced solution would be to implement your own dialog (incl. button handling) and open it with DialogService.OpenAsync<MyDialog>().