Completed
Last Updated: 07 Aug 2024 08:00 by ADMIN
Release 7.1.0 (2024 Q3)
Kevin
Created on: 01 Feb 2024 21:32
Category: RichTextEditor
Type: Bug Report
2
RichTextEditor: Document unloaded after navigating to new page

In iOS if you are on a page with a rich text editor, then navigate to a new page, the editor gets unloaded.  When the user navigates back, the document is still unloaded and is no longer functional.  This is not a problem on Android.

Here is a stack trace of when that document gets unloaded:

5 comments
Kevin
Posted on: 08 Feb 2024 16:20
Thanks Polya!
ADMIN
Polya
Posted on: 08 Feb 2024 13:47

Hi Kevin,

My name is Polya and I am part of the .Net Maui development team. Allow me to take over this thread while my colleague Didi is on leave.

I've investigated the case and I confirm this is an issue on our side. I've updated your Telerik Points for bringing this to our attention.

The issue is related with the control unloading when we navigate away from the page. That said, as a workaround I can suggest creating a new instance of RadRichTextEditor when the page gets loaded again, thus passing through the needed initialization again so everything works. Before we navigate from the page we should save the last RichTextSource so we can use it with the new RadRichTextEditor instance when we return to the page.

I've modified the project to demonstrate this approach.

Hope this helps and is suitable for your scenario.

Regards,
Polya
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Attached Files:
ADMIN
Didi
Posted on: 06 Feb 2024 11:11

Hi Kevin,

Thank you for the updated project. It was of great help.

Actually the issue happens on all platforms, not only on iOS. I am not sure how on Android works on your side, still on mine the get html does not show anything. 

I am researching the case and when there is more information, I will send an update (by the end of this week). 

Regards,
Didi
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Kevin
Posted on: 02 Feb 2024 13:51

Hi Didi,

I was able to reproduce the problem using the zip file you mentioned, but I should have been more specific about what stops working.  After navigating back, the editor appears the same, but calls to GetHtmlAsync return an empty string, and changes to the editor do not affect the what's returned there. I attached a zip file of the same project that includes a label with the html output after making changes to the editor.  After navigating back on ios, the label is blank and changes to the editor no longer affect the label

Attached Files:
ADMIN
Didi
Posted on: 02 Feb 2024 07:57

Hi Kevin,

I tested the described scenario and cannot reproduce the behavior. Sample is attached. Please download it and check on your side. Update the sample to match the exact setup you have, then send it back to me for further research. 

Regards,
Didi
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Attached Files: