- Home
- Forum
- Angular - EJ 2
- Problems using SfDocumentEditorContainer inside SfDialog
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.
Hi Vinícius Franco,
Currently, we are preparing the sample and will update the details on October 29, 2024.
Regards,
Dhanush Sekar
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
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
Hello Dhanush-
It looks like I was missing the AllowPrerender attribute - adding that to the SfDialog has resolved my issue. Thanks
Hi Austin,
Thanks for the update.
Please let us know if you need any further assistance.
Regards,
Dhanush S
- 5 Replies
- 2 Participants
-
AS Austin Smith
- Oct 25, 2024 12:08 PM UTC
- Oct 30, 2024 11:30 AM UTC