UWP Xamarin SfRichTextEditor crashes in collectionview

My UWP app is crashing when richtexteditor:SfRichTextEditor is bound to an object in a collectionview, from a viewmodel. I can bind the richtexteditor:SfRichTextEditor control to an object from the viewmodel outside the collectionview. I can bind a native Editor control within the collection view. If I run the app on Android it works. Specifically, UWP + Collectionview + binding makes the app crash on startup with no error. Just tries to launch the Visual Studio 2022 debugger


I've setup sfrichtexteditor using this page:

https://help.syncfusion.com/xamarin/rich-text-editor/gettingstarted

In a stacklayout I can bind the SfRichTextEditor control an object via MVVM using:

                        Text="{Binding Essay.EssayId, Mode=TwoWay}" />

In a Collection view I can bind to an object using a native control

                 ItemsSource="{Binding EssaySectionsCollection}"
SelectionMode="None">







If I change the native Entry control above to a sfrichtextbox the app crashes when I open that screen

                               Text="{Binding EssaySectionText, Mode=TwoWay}" />

This only happens on UWP. Seems to work fine if I publish the app on Android


5 Replies

GR Gayathri Ramalingam Syncfusion Team January 4, 2022 10:32 AM UTC

Hi Rob, 

Thank you for using Syncfusion products. 

We tried to reproduce the issue “SfRichTextEditor crashes in collectionview in UWP” using code snippet shared by you, but it is working fine as expected. 
  
We have created a simple sample based on the provided information and the sample can be downloaded from the below link.  
  
Kindly provide the following details to investigate further on this issue.   
1.      Modify / Simple sample with which the issue could be reproduced. 
2.      Replication procedure to reproduce the issue or screen shot illustrating the issue. 
3.      Environment specification details with the OS version. 
The above details will be more helpful for us to reproduce the issue in our side and assist you with the better solution at the earliest.   

With Regards, 
Gayathri R 



RO Rob January 4, 2022 10:54 AM UTC

In your example the richtext component is outside of the CollectionView. This part I had working.


If you move the richtext component inside the CollectionView so that the "collection1", "collection2", etc could be edited as a richtext field, then your sample crashes like mine does



GR Gayathri Ramalingam Syncfusion Team January 5, 2022 02:19 PM UTC

Hi Rob, 
 
Thank you for your update. 
 
We were able to reproduce the reported issue and this issue occurs in our dependency control (SfCombobox control) in version 19.4.0.40. We have fixed the issue and published in our 2022 weekly NuGet release with version 19.4.0.41. Kindly update your SfRichTextEditorControl the mentioned version to get the issue resolved.  
 
Kindly install the latest SfRichTextEditor version and confirm us whether you have facing the issue after upgrading the latest version? If yes, kindly modify the below sample or else provide the simple sample to reproduce the reported issue. It will be more helpful for us to reproduce the issue in our side and assist you with the better solution at the earliest.    
 
 
With Regards, 
Gayathri R 
 
 



RO Rob January 9, 2022 11:07 PM UTC

Update has resolved the issue

Thanks



GR Gayathri Ramalingam Syncfusion Team January 10, 2022 07:16 AM UTC

Hi Rob,  
 
Thank you for your update. We are glad to know that the issue is resolved.  
 
With Regards, 
Gayathri R 


Loader.
Up arrow icon