Multi Line in DialogService.Confirm()

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 
}```

The first parameter (message) supports HTML - you can add <br> to create a new line.

sorry i was wrong in the first message
It's supported only in second paramater Title but not supported in the first parameter Message

@page "/test"
@inject DialogService DialogService

<div class="rz-p-12 rz-text-align-center">
    <RadzenButton Text="Confirm dialog" ButtonStyle="ButtonStyle.Secondary" 
        Click=@(args => DialogService.Confirm("meesage first line <br /> meassage second line ", "Titre 1 <br /> titre 2")) />
</div>

image

Make sure you are using an up-to-date version. Here is what I tested with:

@inject DialogService DialogService

<div class="rz-p-12 rz-text-align-center">
    <RadzenButton Text="Confirm dialog" ButtonStyle="ButtonStyle.Secondary" 
        Click=@(args => DialogService.Confirm("Are you <br> sure?", "MyTitle", new ConfirmOptions() { OkButtonText = "Yes", CancelButtonText = "No" })) />
</div>