Problems using SfDocumentEditorContainer inside SfDialog

I'm using an SfDocumentEditorContainer to display a Word document inside of an SfDialog. This works well when initially opening the dialog, but the document editor is disposed when the dialog is hidden, and is not reinitialized when the dialog is re-opened (SfDocumentEditorContainer.IsDisposed is true on the second call to SfDialog.Show), which leads to a blank-screen error state.

Is there a way to prevent the container from being disposed when the dialog closes, or a way to force it to reinitialize when the dialog is reopened? This is in a server-side web app.


5 Replies

DS Dhanush Sekar Syncfusion Team October 28, 2024 02:23 PM UTC

Hi Vinícius Franco,


Currently, we are preparing the sample and will update the details on October 29, 2024.


Regards,

Dhanush Sekar



AS Austin Smith October 28, 2024 02:27 PM UTC

Thanks, but I think there may be some confusion. I'm developing a Blazor application, and originally posted this as a Blazor question, but the platform appears to have been changed to "Angular". Could you confirm that you're working on a Blazor sample?


Thanks,


-Austin Smith



DS Dhanush Sekar Syncfusion Team October 29, 2024 11:41 AM UTC

Hi Austin,

We have prepared a Blazor sample for you, as you mentioned SfDocumentEditor instead of Angular Document Editor.

We were unable to reproduce the reported issue in our latest version, v27.1.57. We have attached a sample and video for your reference.

  • Could you please confirm that whether you are able reproduce the issue in below sample?
    If yes, share the modified sample to reproduce the issue from our end
    If not, please upgrade the document editor to latest version (v27.1.57)


Regards,
Dhanush Sekar


Attachment: New_folder_(25)_22091b7f.zip


AS Austin Smith October 29, 2024 12:13 PM UTC

Hello Dhanush-

It looks like I was missing the AllowPrerender attribute - adding that to the SfDialog has resolved my issue. Thanks



DS Dhanush Sekar Syncfusion Team October 30, 2024 11:30 AM UTC

Hi Austin,


Thanks for the update.

Please let us know if you need any further assistance.


Regards,

Dhanush S


Loader.
Up arrow icon