Lightweight control to view html content only (Radrichtextbox alternative)

1 Answer 354 Views
RichTextBox
Kamran
Top achievements
Rank 3
Iron
Iron
Veteran
Kamran asked on 24 Jan 2022, 05:23 PM

We have requirements to render html contents in List control (ItemsControl).  Collection source may contains upto 200 html content.

Initially we tested RadRichtextbox with HTMLFormatProvider to bind Html content. radrichtextbox along with HtmlFormatProvider works fine for small collection, but if ItemsSource has more than 100 items, we are facing performance issue. 

Therefore I replaced Telerik control with HtmlRenderer.WPF (HtmlPanel) control, which is faster compared to telerik control. HtmlPanel has flow direction issue with arabic text.

Is there any light weight telerik control that can be used to render html contents only.

1 Answer, 1 is accepted

Sort by
0
Tanya
Telerik team
answered on 26 Jan 2022, 04:05 PM

Hi Kamran,

I can see that there is already a discussion on the same topic in the feature request you submitted. Please, check the suggestions there and continue the thread, if needed.

Regards,
Tanya
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Kamran
Top achievements
Rank 3
Iron
Iron
Veteran
commented on 06 Feb 2022, 03:17 PM

Hi Tanya,

I am attaching sample project for reference. You can see there is memory leak when rendering control again and again. Can it be handled by some mean. We can compromise to performance, but when application start, it consume 400MB, but re-opening same user control many time, it exceeds GB and keep growing. Therefore client machine Total memory reach to 80-90 %, in which highest usage is our application. 

Tanya
Telerik team
commented on 09 Feb 2022, 12:47 PM

Hi Kamran,

I have profiled the attached project and confirmed that the memory rises up when loading the HTML documents. However, once the garbage collector runs, the memory is freed up and I couldn't suspect a memory leak. The rise while loading the content is expected as RadRichTextBox converts each HTML to a RadDocument instance and parses all document elements and properties to its model, which is preserved in memory.

Hope this is useful.

Tags
RichTextBox
Asked by
Kamran
Top achievements
Rank 3
Iron
Iron
Veteran
Answers by
Tanya
Telerik team
Share this question
or