(iOS) RadRichTextEditor does not update Source in UI

1 Answer 40 Views
RichTextEditor
Jennie
Top achievements
Rank 1
Jennie asked on 21 Oct 2024, 03:23 PM | edited on 21 Oct 2024, 03:31 PM

When reloading a page containing RadRichTextEditor and updating the Source, the UI does not reflect the change in iOS only. The Source keeps the value that is assigned in the first page load. On Android, updating the Source after the first page load is properly reflected in the UI.

XAML:

<ContentPage
...
xmlns:telerik="http://schemas.telerik.com/2022/xaml/maui">
<Grid> ... <telerik:RadRichTextEditor x:Name="richTextEditor" /> <telerik:RadRichTextEditorToolbar x:Name="richTextEditorToolbar" RichTextEditor="{x:Reference richTextEditor}" /> ... </Grid> </ContentPage>
XAML.CS:
protected override void OnAppearing()
{
    base.OnAppearing();
    richTextEditor.Source = _vm.GetHtmlBody();
}

VIEWMODEL:

public string GetHtmlBody()
{
    return Value; // new value is assigned
}

1 Answer, 1 is accepted

Sort by
0
Didi
Telerik team
answered on 22 Oct 2024, 12:12 PM

Hello Jennie,

I tested the case and cannot reproduce the behavior. I have attached my test project. Download and check on your side. I have used PropertyChanged for the property bound to the RichTextEditor source, make sure you use PropertyChanged. 

Update the app to match the exact setup and send the project 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.

Tags
RichTextEditor
Asked by
Jennie
Top achievements
Rank 1
Answers by
Didi
Telerik team
Share this question
or