The Syncfusion® native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
BSBuvana Sathasivam Syncfusion Team May 18, 2022 12:45 PM UTC
Hi John,
Greetings from Syncfusion support.
By default, the SfDialog OnClose
event is triggered when you click the SfDialog close icon. Based on this event
argument ClosedBy, you can call your own method like in the below code
and sample.
Index.razor
<SfDialog…ShowCloseIcon="true">…
<DialogEventsOnClose="@OnClose"></DialogEvents>
</SfDialog>
@code {
privatevoid OnClose(BeforeCloseEventArgs args) //
Triggered before close the dialog
{
if (args.ClosedBy == "Close Icon")
// Check if closed by
icon or not