Open document

I'm using the document editor, I would need to work with Open Synchronous so that I can control the state of the screen or if there is a way to control the spinner it will also work.

9 Replies 1 reply marked as answer

KB Kurthis Banu Abdul Majeeth Syncfusion Team February 10, 2021 09:19 AM UTC

Hi Hamud, 

Currently, Document Editor opens the document in synchronous mode. In your query, "Open synchronous" refer asynchronous by mistake typed Synchronous or any other. Also, we need some clarification regarding your requirement. 

## control the state of the screen 
What type customization you need? 

## if there is a way to control the spinner? 
At, present we can't access the spinner in sample level. 

Can you please share some detailed description about your use case scenario? that will helpful for us to proceed further and provide you solution at earliest. 

Regards,     

Kurthis Banu A.  



HD Hamud de Souza February 10, 2021 02:13 PM UTC

Sorry I informed you wrong, I needed it to be asynchronous to open, I have a screen where the document is opened in the component's create but until it is loaded in the component of the Document Editor it locks my browser because the document is large. Follows print of the page .



KB Kurthis Banu Abdul Majeeth Syncfusion Team February 11, 2021 02:35 PM UTC

Hi Hamud,  

Currently, Document Editor opens the document in synchronous mode. we are validating opens the document in asynchronous mode.  We will update the further details by Feb- 13-2021. 

Regards, 
Kurthis Banu A. 



HD Hamud de Souza February 11, 2021 02:41 PM UTC

Ok, thanks! I'm waiting for you response.


KB Kurthis Banu Abdul Majeeth Syncfusion Team February 12, 2021 04:13 PM UTC

Hi Hamud,   

Currently, we are validating opens the document in asynchronous mode. We will update the further details Feb -16-2021. 

You can use below code snippet for opens the document in asynchronous mode for now. 

Code snippet : 

methods:{ 
 
  async Oncreated(docEdit,defaultdoc){ 
   await this.getA(docEdit,defaultdoc) 
  }, 
   getA : async(docEdit,defaultdoc) => { 
   docEdit.open(JSON.stringify(defaultdoc)); 
    }, 
}, 
mounted(){ 
  this.$refs.documenteditor.ej2Instances.documentEditor.resize(); 
  this.Oncreated(this.$refs.documenteditor.ej2Instances.documentEditor,this.defaultDocument); 
 
 


Regards, 

Kurthis Banu A. 


Marked as answer

HD Hamud de Souza February 12, 2021 04:16 PM UTC

Ok, I go test, thanks for return.


KB Kurthis Banu Abdul Majeeth Syncfusion Team February 15, 2021 03:35 AM UTC

Hi Hamud, 

Thank you for your update.    
We will wait to hear from you.   

Regards, 

Kurthis Banu A. 



HD Hamud de Souza February 15, 2021 04:31 PM UTC

Hi, I tested and worked. Thanks for resolution.


KB Kurthis Banu Abdul Majeeth Syncfusion Team February 16, 2021 04:57 AM UTC

Hi Hamud, 

Thank you for the response.  

Regards, 

Kurthis Banu A. 


Loader.
Up arrow icon