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
close icon

EjsDialog DialogButtons (Ok, Cancel) not working after upgrading to 17.4.43/17.4.44

<EjsButton @onclick="@OnBtnClick">Open Dialog</EjsButton>
<EjsDialog @ref="DialogObj" Width="250px" ShowCloseIcon="true" IsModal="true">
        <Header> Dialog</Header>
        <Content> This is a Dialog with button and primary button</Content>
        <DialogButton ButtonModel="@OkBtn" OnClick="@OnClick" />
        <DialogButton ButtonModel="@CancelBtn" OnClick="@OnClick" />

@code {
    EjsDialog DialogObj;

    private void OnClick(Object args)
    private void OnBtnClick()

    public Syncfusion.EJ2.Blazor.Buttons.ButtonModel OkBtn = new Syncfusion.EJ2.Blazor.Buttons.ButtonModel { Content = "OK", IsPrimary = true };
    public Syncfusion.EJ2.Blazor.Buttons.ButtonModel CancelBtn = new Syncfusion.EJ2.Blazor.Buttons.ButtonModel { Content = "Cancel" };

5 Replies

IS Indrajith Srinivasan Syncfusion Team January 23, 2020 08:48 AM UTC

Hi Ashimaz,

Greetings from Syncfusion support 
Already, we found this issue internally and resolved it in our end. We will include this fix in our next nuget release. Until then, could you please use the below NuGet package to resolve the issue in your end?

Nuget package: https://www.syncfusion.com/downloads/support/forum/150748/ze/Syncfusion.EJ2.Blazor.
We prepared a sample with dialog button click and can be downloaded from the below location.  
Sample: https://www.syncfusion.com/downloads/support/forum/150857/ze/DialogButton-1452927685

Can you please try out the above solution and let us know if you face any difficulties?

AS ashimaz January 24, 2020 02:26 PM UTC

Thank you.

IS Indrajith Srinivasan Syncfusion Team January 27, 2020 04:21 AM UTC

Hi Ashimaz,

Thanks for your update. Please let us know if you need any further assistance on this.


NI Nico February 14, 2020 05:28 PM UTC

Even with version 17.4.49 this is not working.
My situation: 
The buttons are displayed conditional, several StateHasChanged got fired from other components.

IS Indrajith Srinivasan Syncfusion Team February 17, 2020 06:04 AM UTC

Hi Nico, 
Greetings from Syncfusion support, 
We have validated your reported query by rendering the dialog button conditionally. But its click action works fine with the version 17.4.49. We have also prepared a sample based on your requirement with Dialog buttons rendered conditionally. 
If you still face the issue, kindly share the dialog page and its related code to reproduce your reported issue in our end. So, we will assist you as much as possible. 

Live Chat Icon For mobile
Up arrow icon