We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Closing the Dialog with the CloseIcon does not trigger VisibleChanged

Thread ID:





151134 Jan 31,2020 04:54 PM UTC Feb 3,2020 06:17 AM UTC Blazor 1
Tags: Dialog
Edward Kagan
Asked On January 31, 2020 04:54 PM UTC

As the subject line states, when the Dialog has ShowCloseIcon set to true and the close icon (X) is used to close the dialog, I expect the VisibleChanged event to be triggered but it is not.  I need to know when the dialog is closed using the close icon.

Indrajith Srinivasan [Syncfusion]
Replied On February 3, 2020 06:17 AM UTC

Hi Edward, 
Greetings from Syncfusion support 
We have validated you reported query. The dialog has OnClose and Closed event to trigger on close icon click. The isInteracted argument from these events determine whether the event is triggering using interaction or programmatically. 
  • OnClose – event trigger before close the dialog
  • Closed – after close the dialog
@using Syncfusion.EJ2.Blazor 
@using Syncfusion.EJ2.Blazor.Popups 
<EjsDialog Width="250px" ShowCloseIcon="true"> 
    <DialogEvents Closed="OnAfterDialogClosed" OnClose="OnBeforeDialogClose"> 
        <Header> Dialog Header </Header> 
        <Content> This is a Dialog with content</Content> 
        <DialogButton ButtonModel="@OkBtn"  />    
@code { 
    EjsDialog DialogObj; 
    public Syncfusion.EJ2.Blazor.Buttons.ButtonModel OkBtn = new Syncfusion.EJ2.Blazor.Buttons.ButtonModel { Content = "OK", IsPrimary = true }; 
    private void OnBeforeDialogClose(object arg) 
    private void OnAfterDialogClosed(object arg) 
Please let us know if you need any further assistance on this. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon