DocumentEditor - ReadOnly

Hi,

I am wrinting this in the WordProcessor control forum, as I can't find one for the DocumentEditor.

I would like to display a word document in ReadOnly mode. Could you please point me in the right direction, as I can't seem to be able to find any documentation on this, but looking in the Documentation section of the syncfusion.com website, I can find a reference to this functionality being present.

Thanks!

Mike

5 Replies 1 reply marked as answer

HC Harini Chellappa Syncfusion Team August 31, 2020 11:26 AM UTC

Hi Mike, 

Document editor provides RestrictEditing property to make the component read-only. 


You can set this property to true on created event. 

OnCreated() { 
ContainerRef.RestrictEditing = true; 
} 

You can also set this property in control wrapper. But facing some issues when setting before component created. Currently, we are checking on this and update you further details on Sep 1st, 2020.  

Regards, 

Harini C 



HC Harini Chellappa Syncfusion Team September 1, 2020 05:21 PM UTC

Hi Mike, 

Reg. “setting restrict editing property in control wrapper not works” 

We have considered this as bug and logged defect report. Fix will be included in our upcoming NuGet release which is tentatively scheduled on Sep 16th, 2020. Once included will update you. You can also track the status from below link. 


Regards, 

Harini C 




HC Harini Chellappa Syncfusion Team September 17, 2020 04:39 AM UTC

Hi Mike,  

Reg. “setting restrict editing property in control wrapper not works” 

We have fixed the below reported issue but changes are not reflected in blazor nuget. We will check and include it in our next nuget release which is tentatively scheduled by September 22nd, 2020.    

You can also track the status from below link.   
   
   
Regards,  

Harini C 



MI Michael September 17, 2020 06:40 PM UTC

Thanks!
Will have a look after Sep 22nd.

Best regards,

Mike


SR Stephen Raj Chandra Sekar Syncfusion Team September 23, 2020 05:58 AM UTC

Hi Mike, 
 
 
We are glad to announce that our weekly NuGet release v18.2.0.59 has been rolled out successfully and included the fix for the issue “setting restrict editing property in control wrapper not Works”.  
 
 
Kindly upgrade your document editor package to latest version to resolve this issue.  
 
 
  
 
//Sample Code snippet 
<SfDocumentEditorContainer @ref="container" RestrictEditing="true"> </SfDocumentEditorContainer>  
 
 
Regards, 
Stephen Raj 


Marked as answer
Loader.
Up arrow icon