Is it possible to resolve html markup img src path via Event?

1 Answer 66 Views
Label
Pascal
Top achievements
Rank 1
Iron
Pascal asked on 08 Jan 2023, 10:39 AM | edited on 09 Jan 2023, 02:50 PM

Hello everyone!

EDIT: Also read the comment!

I'm currently moving some projects from DotNetBar to Telerik UI WinForms and trying a bit around the HTML makrup feature.

Is there a way to hook to an event to provide a custom way to resolve the "src" attribute of the "img" node, like in DotNetBar (see picture)? I searched thorugh all the assemblies using the IDE and I searched throw the forum, but yet I'm still not sure if there is maybe already an option for and I just can't find it.

With this custom handling it would be possible to use already loaded images or provide images from a custom destination e.g. from a ResX file. All my images and icons are stored in ResX files and I really want to avoid to put some of icons also as embedded ressource because they are already available within a resource file itself.

(Tagged as "Label" as "Markup" or "Html" does not exists and here I want to put the text into a RadLabel.)

Pascal
Top achievements
Rank 1
Iron
commented on 09 Jan 2023, 02:49 PM | edited

Alright, I've found out that there is no solution for this. I checked the source code and now suggest a little feature request with changes like on this picture to the TinyHtmlParser.

1 Answer, 1 is accepted

Sort by
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 11 Jan 2023, 03:37 PM

Hi, Pascal,

Indeed, there is no event for handling the specific scenario that you are trying to manage. Thank you for the provided feedback. We will definitely consider it in future when improving this functionality.

I would recommend you to have a look at the following help article which lists the supported tags in the HTML-like formatting feature offers:

https://docs.telerik.com/devtools/winforms/telerik-presentation-framework/html-like-text-formatting 

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Principal
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.

Pascal
Top achievements
Rank 1
Iron
commented on 11 Jan 2023, 07:42 PM

Hi Dess,

thank you for your anwswer!

As you have already stated, it would be gladfull if it probably becomes a part of a future update. :)

For now, following your documentation, I just embed my images and deal with it to have them twice embedded within my assembly.

Have a nive day!

Regards,
Pascal

Tags
Label
Asked by
Pascal
Top achievements
Rank 1
Iron
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or