Modal Dialogues no longer showing

Since I've upgraded from version 19 to version 20 of the controls, none of my modal dialogs are showing. They worked previously and the relevant code hasn't changed. If I try your online documentation, Visual Studio either complains with an error (in the case of the block that looks like the following (it says the signature is wrong) 

<DialogEvents OnOverlayClick="@OnOverlayclick">
    </DialogEvents>

Or, in the case of the line:

services.AddSyncfusionBlazor(options => { options.IgnoreScriptIsolation = true; });

it says it is obsolete. It is running in .NET Core 3.1. Regardless, whenever the property that is flipping from false to true to ensure the dialogue is shown, nothing is shown. Any ideas?

Thanks


5 Replies

VJ Vinitha Jeyakumar Syncfusion Team August 19, 2022 09:22 AM UTC

Hi Andy,

We want to let you know that we have removed the Obsolete event OnOverlayClick, instead of that use OnOverlayModalClick event from V20.2.36.


Also, we have included a breaking change in loading scripts and styles from our latest version 20.1.47. You can use any one of the below methods to load styles and scripts externally. Kindly refer to the below ways for your reference


  1. CDN

 

  1. Static Web Assets

Scripts - https://blazor.syncfusion.com/documentation/common/adding-script-references#static-web-assets

 

Styles - https://www.nuget.org/packages/Syncfusion.Blazor.Themes/


Please refer to the release notes below for your additional information.

https://blazor.syncfusion.com/documentation/release-notes/20.1.47?type=all#breaking-changes


We have also prepared a sample using the code you have shared and we didn't face any issues as you reported. please find the sample below,


Samplehttps://www.syncfusion.com/downloads/support/directtrac/general/ze/DialogServer46492658


Regards,

Vinitha



AP Andy Polshaw August 19, 2022 09:54 AM UTC

Thank you. Adding that script to the head element in our Layout page/control made it start working again (at least on my laptop) I'll deploy it to the staging server and confirm all is good for my release on Monday. 

I need to pay more attention to your release notes - I wasted a few hours trying to compare to previous working revisions, etc. before posting this before I went home yesterday.



VJ Vinitha Jeyakumar Syncfusion Team August 22, 2022 05:37 AM UTC

Hi Andy,


We will wait until we get an update from you.

Regards,
Vinitha


AP Andy Polshaw August 22, 2022 07:44 AM UTC

All good thanks. Or it is good on our staging server so I'm sure it will be fine on live when I do it later today.



VJ Vinitha Jeyakumar Syncfusion Team August 23, 2022 05:01 AM UTC

Hi Andy,


We are glad to assist you.

Regards,
Vinitha

Loader.
Up arrow icon