Welcome to the Blazor feedback portal. We’re happy you’re here! If you have feedback on how to improve the Blazor, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

While using the SfDialogProvider it would be very helpful to have an additonal parameter (e.g. bool Wrap Text = false) within the methods like AlertAsync that allows to auto render the given content including linebreaks in the UI:

@(WrapText ? (MarkupString)content.Replace(Environment.NewLine,"<br/>")) : content)


In page behind you can use a hack creating a render fragment in code but this is matches the blazor architecture:

await DialogService.AlertAsync(null, "Fehler bei Validierung", new DialogOptions() { ChildContent = builder => { builder.AddContent(0, (MarkupString)result.Replace(

Environment.NewLine
, "<br/>")); } });

So just : 

await DialogService.AlertAsync(null, "Fehler bei Validierung", true)


It would be very helpful feature and easy to implement. Most times users WANTs c# linebreaks also in UI